home *** CD-ROM | disk | FTP | other *** search
/ Shareware Super Platinum 8 / Shareware Super Platinum 8.iso / mac / DATABASE / OBJ1_2.ZIP;1 / OB_FUNCT.TXT < prev    next >
Encoding:
Text File  |  1993-01-28  |  91.5 KB  |  3,387 lines

  1. '
  2. 'This chapter menu
  3. '^^^^^^^^^^^^^^^^^^^^^^
  4. '
  5. '!short:Abort (e) --> do_nothing
  6. '!short:AboutOff (lKeepCursor) --> true/false
  7. '!short:AboutOn (cProgName,nVersion,nYear,[cUser],[cAuthor]) --> true
  8. '!short:ATailDel (aArray) --> xDeletedItem
  9. '!short:ATrueDel (aArray,[nPosition]) --> xDeletedItem
  10. '!short:ATrueIns (aArray,[nPosition],[xValue]) --> aArray
  11. '!short:AValid (oGet,aArray,[bBlock],[lEmptyAllowed]) --> true/false
  12. '!short:AWidth (aArray,[bWidth]) --> nWidth
  13. '!short:BlueDanu () --> nil
  14. '!short:BoxShadow (nRow,nCol,nRow2,nCol2,[cColor]) --> true
  15. '!short:CanEditHelp (new) --> true/false
  16. '!short:Color2Num (cColor,[lSwap]) --> n_DOS_Attr
  17. '!short:Convert (cOldPsw,LenField,lScramble) --> cNewPassword
  18. '!short:CopyOneDbf (cName) --> copy_of_OneDbf
  19. '!short:ChangeAssoc (Txt,VarName,N) --> true/false
  20. '!short:CreateIndex (e,lContinue) --> true/false
  21. '!short:DateLimit (cDate) --> nil/old_cDate
  22. '!short:DaysInMonth (Month,Year) --> nDays
  23. '!short:DbfValid (cName,oGet,cDbfName,[nOrder],bBlock,[lEmpty]) --> true/false
  24. '!short:DoBreak (o) --> do_nothing
  25. '!short:DOut (cMsg) --> nil
  26. '!short:EditGetMsg (oGet,[lCanEdit]) --> true
  27. '!short:EditGet (oGet,[lCanEdit]) --> true
  28. '!short:EditIt (xValue,cMsg,cPicture,[nRow],[nCol],[cColor],[lIsPsw]) --> xRetVal
  29. '!short:ErrorMessage (oError) --> cDescription
  30. '!short:FInfoShow (FName,R,C,Rs,Cs,Clr,Shadow) --> true/false
  31. '!short:GetActiveMenu () --> current_active_menu_object
  32. '!short:GetAlias (cFullFileName) --> a:\dir\ALIAS.dbf
  33. '!short:GetBack (cColor) --> cBackColor
  34. '!short:GetField (cFullFieldName) --> sel->FIELD
  35. '!short:GetFore (cColor) --> cForeColor
  36. '!short:GetKey (nSecs) --> nInkeyCode
  37. '!short:GetLastDbf () --> last_object_of_Dbf
  38. '!short:GetNewRepName () --> new_report_name
  39. '!short:GetOneDbf (cName) --> object_of_OneDbf
  40. '!short:GetSelect (cFullFieldName) --> SELECT->fld
  41. '!short:GetTList () --> TList
  42. '!short:GetVList () --> VList
  43. '!short:GetWList () --> WList
  44. '!short:GoodBye () --> true
  45. '!short:GoodRun (cmd) --> true
  46. '!short:HelpAssoc (Txt,VarName,N) --> N
  47. '!short:HelpField () --> true/false
  48. '!short:HelpKeys () --> true/false
  49. '!short:HelpReserved (nNew,nAdd) --> nOldValue
  50. '!short:IEval (nCount,bBlock) --> xValue
  51. '!short:IncludeFunctions () --> true
  52. '!short:InKeyWait ([nSecs]) --> nKey
  53. '!short:ListAsArray (cList,[cDelimiter]) --> aList
  54. '!short:LogClear () --> true/false
  55. '!short:LogOff () --> true/false
  56. '!short:LogOn () --> true/false
  57. '!short:LogSet (nUsers) --> nUsers
  58. '!short:Memo (bVar,lEdit,[cTitle],[R],[C],[RSize],[CSize],[CurSize],[Clr],[lShd])
  59. '!short:MidStr (S,l,r) --> cString
  60. '!short:NetCreateFrom (cFile1,cFile2,[lContinue]) --> true/false
  61. '!short:NetDbAppend ([lContinue]) --> true/false
  62. '!short:NetDbCreate (cFile,aStructure,[lContinue]) --> true/false
  63. '!short:NetDbDelete ([lContinue]) --> true/false
  64. '!short:NetDbRecall ([lContinue]) --> true/false
  65. '!short:NetDbUseArea (new,rdd,db,a,shex,ro,[lContinue]) --> true/false
  66. '!short:NetFErase (cFile,[lContinue]) --> true/false
  67. '!short:NetFLock ([lContinue]) --> true/false
  68. '!short:NetIndexOn (cFile,cKey,[bKey],[lUnique],[lContinue]) --> true/false
  69. '!short:NetLimit (new) --> old
  70. '!short:NetPack ([lContinue]) --> true/false
  71. '!short:NetReIndex ([lContinue]) --> true/false
  72. '!short:NetRLock ([lContinue]) --> true/false
  73. '!short:NetSetIndex (cListFiles,[lContinue]) --> true/false
  74. '!short:NetZap ([lContinue]) --> true/false
  75. '!short:OAlert (cMessage,[aOptions],[nRow]) --> nChoice
  76. '!short:ObjectDone ([lContinue]) --> true
  77. '!short:ObjectInit ([clr],cPrgName,nVersion,nYear,[cUser],[cAuthor],[cLine]) --> nil
  78. '!short:PageLength ([nNewRows]) --> nOldRows
  79. '!short:PauseKey ([nSecs]) --> nKey
  80. '!short:PopBreak () --> code_block
  81. '!short:PrintCodes (cCtrlCode) --> true
  82. '!short:PrintFile (cFileName) --> nil
  83. '!short:PrintOff () --> nil
  84. '!short:PrintOn () --> nil
  85. '!short:PushBreak (Br) --> nil
  86. '!short:ReadHelpVar (vn) --> VarName
  87. '!short:RefreshRow () --> nil
  88. '!short:RefreshTable () --> nil
  89. '!short:RepaintDesktop () --> nil
  90. '!short:RestartTask () --> true/false
  91. '!short:RestDatabase () --> nil
  92. '!short:RestDOut () --> nil
  93. '!short:RestHelpIdx () --> true
  94. '!short:RestScr (aScreenArray) --> true
  95. '!short:SaveDOut (cMsg) --> nil
  96. '!short:SaveHelpIdx (aNewIdx) --> true
  97. '!short:SaveScr ([nRow1],[nCol1],[nRow2],[nCol2]) --> aScreenArray
  98. '!short:SetDateTime ([lNew]) --> true/false
  99. '!short:SetDialog ([lNew]) --> true/false
  100. '!short:SetDMsg ([cNew]) --> true/false
  101. '!short:SetErrFile ([cNewFileName]) --> cOldFileName
  102. '!short:SetHelpIdx ([lNew]) --> true/false
  103. '!short:SetLastKey (nKey) --> nKey
  104. '!short:SetLastTask ([<NewTask>]) --> task_object
  105. '!short:SetMemoWrap ([lNew]) --> true/false
  106. '!short:SetQuickEsc ([lNew]) --> true/false
  107. '!short:SetShowText ([lNew]) --> true/false
  108. '!short:SetShowTime ([lNew]) --> true/false
  109. '!short:ShowText ([cNew]) --> cOld
  110. '!short:ShowTime ([cNewTime]) --> cCurrentTime
  111. '!short:SkipDeleted() --> true/false
  112. '!short:StuffKey (nKey) --> true
  113. '!short:StuffKeys (cKeys) --> true
  114. '!short:SwapColor (cColor) --> cSwappedColor
  115. '!short:SwapDatabase (cAlias, nOrder) --> nil
  116. '!short:SwapEGALines() --> nil
  117. '!short:SwapVGALines() --> nil
  118. '!short:TestAllDbfReIndex () --> true
  119. '!short:TopBreak () --> code_block
  120. '!short:UserID ([cUserID]) --> cUserID
  121. '!short:UserLevel (new) --> nUserLevel
  122. '!short:UserNo (new) --> UserNo
  123. '!short:WEval (bExpression,bBlock) --> true/false
  124. '
  125. '
  126. '####################################################################################
  127. !short:Abort (e) --> do_nothing
  128. ^BAbort (e) --> do_nothing:
  129. ~~~~~~~~~~~~~~~~~~~~~~~~~
  130.  
  131. Functions:
  132. ~~~~~~~~~~
  133. Displaying of error allert text and quitting of the program, an emergency
  134. program exit.
  135.  
  136. Parameter description:
  137. ~~~~~~~~~~~~~~~~~~~~~~
  138. e: Can be an error_object, or text string to display as error allert.
  139.  
  140. Return value:
  141. ~~~~~~~~~~~~~
  142. nil.
  143.  
  144. Source code is in file  Errorsys.prg.
  145.  
  146. !seealso:
  147.  
  148.  
  149. '####################################################################################
  150. !short:AboutOff (lKeepCursor) --> true/false
  151. ^BAboutOff (lKeepCursor) --> true/false:
  152. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  153.  
  154. Functions:
  155. ~~~~~~~~~~
  156. Restores the screen saved by AboutOn().
  157.  
  158. Parameter description:
  159. ~~~~~~~~~~~~~~~~~~~~~~
  160. lKeepCursor: If true, the cursor is restored to size and shape of saved when
  161.              AboutOff() was called.
  162.  
  163. Return value:
  164. ~~~~~~~~~~~~~
  165. true - if the screen was saved by AboutOn()
  166. false - nothing to restore the AboutOn() function was not called
  167.  
  168. Source code is in file  Object1.prg
  169.  
  170. !seealso: AboutOn
  171.  
  172.  
  173. '####################################################################################
  174. !short:AboutOn (cProgName,nVersion,nYear,[cUser],[cAuthor]) --> true
  175. ^BAboutOn(cProgName,nVersion,nYear,[cUser],[cAuthor]) --> true:
  176. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  177.  
  178. Functions:
  179. ~~~~~~~~~~
  180. 1.The screen is stored for restoring by AboutOff()
  181. 2.Initial sytem window is painted
  182. 3.Clipper switch set to default value(date,confirm,...)
  183. 4.Help system activation
  184. 5.System necessary classes registration
  185. 6.Date and time request.
  186.  
  187. Parameter description:
  188. ~~~~~~~~~~~~~~~~~~~~~~
  189. cProgName: program name to be painted in big capitals to initial screen
  190. nVersion:  program version number
  191. nYear:     creation year
  192. cUser:     registered user name
  193. cAuthor:   author name (symbol)
  194.  
  195. Return value:
  196. ~~~~~~~~~~~~~
  197. allways true.
  198.  
  199. Source code is in file  Object1.prg
  200.  
  201. !seealso: AboutOff
  202.  
  203.  
  204. '####################################################################################
  205. !short:ATailDel (aArray) --> xDeletedItem
  206. ^BATailDel(aArray) --> xDeletedItem:
  207. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  208.  
  209. Functions:
  210. ~~~~~~~~~~
  211. Last array element delete.
  212.  
  213. Parameter description:
  214. ~~~~~~~~~~~~~~~~~~~~~~
  215. aArray: the array identifier of which last element should be deleted
  216.  
  217. Return value:
  218. ~~~~~~~~~~~~~
  219. deleted element value.
  220.  
  221. Source code is in file  Object3.prg
  222.  
  223. !seealso: ATrueDel ATrueIns
  224.  
  225.  
  226. '####################################################################################
  227. !short:ATrueDel (aArray,[nPosition]) --> xDeletedItem
  228. ^BATrueDel(aArray,[nPosition]) --> xDeletedItem:
  229. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  230.  
  231. Functions:
  232. ~~~~~~~~~~
  233. Selected array element delete.
  234.  
  235. Parameter description:
  236. ~~~~~~~~~~~~~~~~~~~~~~
  237. aArray:    array of which is the element to delete
  238. nPosition: element to delete position, if none the last element is to delete.
  239.  
  240. Return value:
  241. ~~~~~~~~~~~~~
  242. deleted element value.
  243.  
  244. Source code is in file  Object3.prg
  245.  
  246. !seealso: ATailDel ATrueIns
  247.  
  248.  
  249. '####################################################################################
  250. !short:ATrueIns (aArray,[nPosition],[xValue]) --> aArray
  251. ^BATrueIns(aArray,[nPosition],[xValue]) --> aArray:
  252. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  253.  
  254. Functions:
  255. ~~~~~~~~~~
  256. the value xValue is inserted to aArray to nPosition. The elements above index
  257. nPosition are moved one position higher, the array size is incremented by 1.
  258.  
  259. Parameter description:
  260. ~~~~~~~~~~~~~~~~~~~~~~
  261. aArray:    array to which is the element to insert
  262. nPosition: position, where to insert the xValue, the default value is to
  263.            insert to the last array position.
  264. xValue:    value to be inserted to array, default nil.
  265.  
  266. Return value:
  267. ~~~~~~~~~~~~~
  268. array incremented by one element
  269.  
  270. Source code is in file  Object3.prg
  271.  
  272. !seealso: ATailDel ATrueDel
  273.  
  274.  
  275. '####################################################################################
  276. !short:AValid (oGet,aArray,[bBlock],[lEmptyAllowed]) --> true/false
  277. ^BAValid(oGet,aArray,[bBlock],[lEmptyAllowed]) --> true/false:
  278. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  279.  
  280. Functions:
  281. ~~~~~~~~~~
  282. Current value Get:VarGet() is validated, if not valid the choose of valid
  283. array values is offered to user to select the right value. Selected value is
  284. written to Get object (Get:VarPut(...)). When testing if the Get:VarGet()
  285. is valid, is it compared with value of expression Eval(bBlock,e), where e
  286. is obtaining the values of aArray.
  287.  
  288. Parameter description:
  289. ~~~~~~~~~~~~~~~~~~~~~~
  290. oGet:          clipper object of GET class
  291. aArray:        valid items array for comparing with Get:VarGet()
  292. bBlock:        code block converting the aArray elemnet to value for
  293.                comparation with Get:VarGet(). default is {|e|e} - no
  294.                conversion direct compare
  295. lEmptyAllowed: if true the valid data for Get:VarGet is the result of
  296.                function Empty(Get:VarGet()), else the Get:VarGet() value
  297.                must be in aArray.
  298.  
  299. Return value:
  300. ~~~~~~~~~~~~~
  301. true  if the value is valid
  302. false if the value is not valid.
  303.  
  304. Remarks:
  305. ~~~~~~~~
  306. Tato funkcia pouziva object vytvoreny z triedy Choice.
  307.  
  308. Source code is in file  Object3.prg
  309.  
  310. !seealso: DbfValid c_choice.ngo:Choice
  311.  
  312.  
  313. '####################################################################################
  314. !short:AWidth (aArray,[bWidth]) --> nWidth
  315. ^BAWidth(aArray,[bWidth]) --> nWidth:
  316. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  317.  
  318. Functions:
  319. ~~~~~~~~~~
  320. returns the aArray width (for array of strings the length of the longest
  321. string in array).
  322.  
  323. Parameter description:
  324. ~~~~~~~~~~~~~~~~~~~~~~
  325. aArray:  any array (default is array of strings)
  326. bBlock:  code block for aArray element to its length conversion,
  327.          default is {|e|Len(e)}
  328.  
  329. Return value:
  330. ~~~~~~~~~~~~~
  331. aArray width
  332.  
  333. Source code is in file  Object3.prg
  334.  
  335. !seealso: ListAsArray ATrueDel ATailDel ATrueIns
  336.  
  337.  
  338. '####################################################################################
  339. !short:BlueDanu () --> nil
  340. ^BBlueDanu () --> nil:                                                           :
  341. ~~~~~~~~~~~~~~~~~~~~
  342.  
  343. Functions:
  344. ~~~~~~~~~~
  345. Plays a Blue Danube valtzer until a key is pressed.
  346.  
  347. Parameter description:
  348. ~~~~~~~~~~~~~~~~~~~~~~
  349. nil
  350.  
  351. Return value:
  352. ~~~~~~~~~~~~~
  353. nil
  354.  
  355. Source code is in file  Object3.prg.
  356.  
  357. !seealso: GoodBye
  358.  
  359.  
  360. '####################################################################################
  361. !short:BoxShadow (nRow,nCol,nRow2,nCol2,[cColor]) --> true
  362. ^BBoxShadow(nRow,nCol,nRow2,nCol2,[cColor]) --> true:
  363. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  364.  
  365. Functions:
  366. ~~~~~~~~~~
  367. the shadow is painted around the window with coordinates nRow,nCol,nRow2,
  368. nCol2 in cColor.
  369.  
  370. Parameter description:
  371. ~~~~~~~~~~~~~~~~~~~~~~
  372. nRow:   upper window border
  373. nCol:   left window border
  374. nRow2:  bottom window border
  375. nCol2:  right window border
  376. cColor: shadow color, default is border (third SetColor() item)
  377.  
  378. Return value:
  379. ~~~~~~~~~~~~~
  380. true
  381.  
  382. Source code is in file  Object3.prg
  383.  
  384. !seealso: ListAsArray c_box.ngo:Box c_win.ngo:Win c_window.ngo:Window
  385.  
  386.  
  387. '####################################################################################
  388. !short:CanEditHelp (new) --> true/false
  389. ^BCanEditHelp (new) --> true/false:
  390. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  391.  
  392. Functions:
  393. ~~~~~~~~~~
  394. Get-set function for enabling - disabling of help text editation.
  395. If (without parameters) returns true, the editation is enabled, if false it
  396. is disabled. Default value is true (editation enabled).
  397.  
  398. Parameter description:
  399. ~~~~~~~~~~~~~~~~~~~~~~
  400. new: true or false.
  401.  
  402. Return value:
  403. ~~~~~~~~~~~~~
  404. true/false.
  405.  
  406. Source code is in file  Object2.prg.
  407.  
  408. !seealso: HelpField HelpAssoc ChangeAssoc ReadHelpVar HelpReserved
  409.  
  410.  
  411. '####################################################################################
  412. !short:Color2Num (cColor,[lSwap]) --> n_Byte_DOS_Attr
  413. ^BColor2Num(cColor,[lSwap]) --> nByte_DOS_Attr:
  414. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  415.  
  416. Functions:
  417. ~~~~~~~~~~
  418. Clipper (char) color to numerical DOS color conversion.
  419.  
  420. Parameter description:
  421. ~~~~~~~~~~~~~~~~~~~~~~
  422. cColor:     value for conversion
  423. lSwap:      if true, the foreground with background colors are exchanged,
  424.             default is false
  425.  
  426. Return value:
  427. ~~~~~~~~~~~~~
  428. DOS color attribute
  429.  
  430. Source code is in file  Object3.prg
  431.  
  432. !seealso: BoxShadow
  433.  
  434.  
  435. '####################################################################################
  436. !short:Convert (cOldPsw,LenField,lScramble) --> cNewPassword
  437. ^BConvert (cOldPsw,LenField,lScramble) --> cNewPassword:
  438. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  439.  
  440. Functions:
  441. ~~~~~~~~~~
  442. Encryption or decryption (according of the lScramble value) of cOldPsw
  443. password variable, with ascii character simple shift. The return value
  444. length is set to LenField.
  445.  
  446. Parameter description:
  447. ~~~~~~~~~~~~~~~~~~~~~~
  448. cOldPsw:   Text string for decryption.
  449. LenField:  Decrypted string length.
  450. lScramble: True if to decrypt, false if to encrypt.
  451.  
  452. Return value:
  453. ~~~~~~~~~~~~~
  454. Decrypted/encrypted text string.
  455.  
  456. Source code is in file  c_dbf.prg.
  457.  
  458. !seealso: c_dbf.ngo:Dbf c_menu.ngo:Menu
  459.  
  460.  
  461. '####################################################################################
  462. !short:CopyOneDbf (cName) --> copy_of_OneDbf
  463. ^BCopyOneDbf (cName) --> copy_of_OneDbf:
  464. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  465.  
  466. Functions:
  467. ~~~~~~~~~~
  468. In last defined Dbf class object is such OneDbf class object searched for,
  469. which o:Name is equal to recieved parameter. If it is found, it returns
  470. its copy, if not the process is aborted.
  471.  
  472.  
  473. Parameter description:
  474. ~~~~~~~~~~~~~~~~~~~~~
  475. cName: object name (Alias() of some opened database file) which is to search
  476.        for in last defined class Dbf object.
  477.  
  478. Return value:
  479. ~~~~~~~~~~~~~~~~~~
  480. object_of_OneDbf
  481.  
  482. Source code is in file  c_dbf.prg.
  483.  
  484. !seealso: c_dbf.ngo:Dbf
  485.  
  486.  
  487. '####################################################################################
  488. !short:ChangeAssoc (Txt,VarName,N) --> true/false
  489. ^BChangeAssoc (Txt,VarName,N) --> true/false:
  490. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  491.  
  492. Functions:
  493. ~~~~~~~~~~
  494. It enables to assign a new index to help database to some asociation string
  495. describing edited variable (usualy a edited variable name). The edited
  496. variable can be assigned a name for help window title.
  497.  
  498. Parameter description:
  499. ~~~~~~~~~~~~~~~~~~~~~~
  500. Txt:     association string, system name of edited variable
  501. VarName: user name of edited variable (title)
  502. N:       index (RecNo()) to help database
  503.  
  504. Return value:
  505. ~~~~~~~~~~~~~
  506. true if the exchange was succesffull, false if the association string Txt
  507. was not found in array Association.(Association is a static array defined
  508. in Object2.prg, filled by HelpAssoc(...) function.
  509.  
  510. Source code is in file  Object2.prg.
  511.  
  512. !seealso: HelpAssoc ReadHelpVar HelpField
  513.  
  514.  
  515. '####################################################################################
  516. !short:CreateIndex (e,lContinue) --> true/false
  517. ^BCreateIndex (e,lContinue) --> true/false:
  518. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  519.  
  520. Functions:
  521. ~~~~~~~~~~
  522. New index file is created, its data are set according array e, it is network
  523. capable. If the creation failed and lContinue is true it returns false, if
  524. lContinue is false, it can continue in a program only if creation was success.
  525.  
  526. Parameter description:
  527. ~~~~~~~~~~~~~~~~~~~~~~
  528. e:         {cName,cFile,cKey,lUnique}:
  529.            cName: menu item name to activate the index,
  530.            cFile : index file name,
  531.            cKey: index key,
  532.            lUnique indicates if the index is unique.
  533. lContinue: if true, we can continue even when the index was not created
  534.  
  535. Return value:
  536. ~~~~~~~~~~~~~
  537. True if creation succeeded, otherwise false.
  538.  
  539. Source code is in file  c_dbf.prg.
  540.  
  541. !seealso: c_dbf.ngo:Dbf
  542.  
  543.  
  544. '####################################################################################
  545. !short:DateLimit (cDate) --> nil/old_cDate
  546. ^BDateLimit (cDate) --> nil/old_cDate:
  547. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  548.  
  549. Functions:
  550. ~~~~~~~~~~
  551. It is get-set function, (if activated without a parameter, it returns last
  552. stored value, if activated with a parameter it is stored). If no date is set
  553. it returns nil (the program will operate even without set date). If the set
  554. date is less then system date the program is aborted after setting of the
  555. password.
  556.  
  557. Parameter description:
  558. ~~~~~~~~~~~~~~~~~~~~~~
  559. cDate: date as a text string (example: DateLimit("31.12.92"))
  560.  
  561. Return value:
  562. ~~~~~~~~~~~~~
  563. nil
  564.  
  565. Example:
  566. ~~~~~~~~
  567.  function Main(...)            //your program begin
  568.    ...
  569.    NetLimit(1)                 //one user at time
  570.    DateLimit("31.12.99")       //program will be operatible till 31.12.1999
  571.    ...
  572.    object oD of Dbf init ...
  573.    ...
  574.  
  575.  
  576. Source code is in file  Object3.prg.
  577.  
  578. !seealso:
  579.  
  580.  
  581. '####################################################################################
  582. !short:DaysInMonth (Month,Year) --> nDays
  583. ^BDaysInMonth (Month,Year) --> nDays:
  584. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  585.  
  586. Functions:
  587. ~~~~~~~~~~
  588. For a given month count its days.
  589.  
  590. Parameter description:
  591. ~~~~~~~~~~~~~~~~~~~~~~
  592. Month: month as a number 1 .. 12
  593. Year:  year set as four digits (i.g. 1992), if nothing set, is taken from
  594.        Date()
  595.  
  596. Return value:
  597. ~~~~~~~~~~~~~
  598. number of days of set month
  599.  
  600. Source code is in file  Object3.prg.
  601.  
  602. !seealso:
  603.  
  604.  
  605. '####################################################################################
  606. !short:DbfValid (cName,oGet,cDbfName,[nOrder],bBlock,[lEmpty],[aFields]) --> true/false
  607. ^BDbfValid(cName,oGet,cDbfName,[nOrder],bBlock,[lEmpty],[aFields])  --> true/false:
  608. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  609.  
  610. Functions:
  611. ~~~~~~~~~~
  612. Current value Get:VarGet() is validated, if not valid the window with
  613. valid data to select (from database cDbfName) is diplayed.Selected value is
  614. written to Get object (Get:VarPut(..)). When validating of the Get:VarGet()
  615. the database cDbfName is seeked. After the end of search is the status of
  616. databases before the activating of this command restored.
  617.  
  618. Parameter description:
  619. ~~~~~~~~~~~~~~~~~~~~~~
  620. cName:         displayed data window name
  621. oGet:          clipper object of GET class
  622. cDbfName:      seeked database alias name
  623. nOrder:        if set then before the seek is the SET ORDER TO nOrder command
  624.                performed(setting of the active index).
  625. bBlock:        code block to return the value for storing to Get object.
  626.                When performing this code block the selected database is
  627.                cDbfName and RecNo() points to selected record.
  628. lEmpty:        if true the valid data for Get:VarGet is also the result of
  629.                function Empty(Get:VarGet()), otherwise Get:VarGet() must be
  630.                found in the database cDbfName.
  631. aFields:       Array of strings with field_names (column names) of database
  632.                cDbfName, whitch are to be displayed for selection, if invalid
  633.                field value was entered.
  634.  
  635. Return value:
  636. ~~~~~~~~~~~~~
  637. true  if the data value is valid
  638. false if the data value is not valid
  639.  
  640. Remarks:
  641. ~~~~~~~~
  642. This function uses the object of UpBrowse class.
  643.  
  644. Source code is in file  Object3.prg
  645.  
  646. !seealso: AValid c_updbro.ngo:UpDBrowse
  647.  
  648.  
  649. '####################################################################################
  650. !short:DoBreak (o) --> do_nothing
  651. ^BDoBreak (o) --> do_nothing:
  652. ~~~~~~~~~~~~~~~~~~~~~~~~~~~
  653.  
  654. Functions:
  655. ~~~~~~~~~~
  656. Performs immediately the BREAK command.
  657.  
  658. Parameter description:
  659. ~~~~~~~~~~~~~~~~~~~~~~
  660. o: error_object which if set is passed as a parameter to the command
  661.  
  662. Return value:
  663. ~~~~~~~~~~~~~
  664. nil
  665.  
  666. Source code is in file  errorsys.prg.
  667.  
  668. !seealso: PushBreak PopBreak ob_comma.ngo:"BEGIN BREAK"
  669.  
  670.  
  671. '####################################################################################
  672. !short:DOut (cMsg) --> nil
  673. ^BDOut(cMsg) --> nil:
  674. ~~~~~~~~~~~~~~~~~~
  675.  
  676. Functions:
  677. ~~~~~~~~~~
  678. If it is enabled to write to dialog line, the centered text is written there.
  679. The text is stored by later use with function SetDMsg(). The colors are
  680. m->Color:Menu[nNormal], the SetColor() remains unchanged , the cursor too.
  681.  
  682. Parameter description:
  683. ~~~~~~~~~~~~~~~~~~~~~~
  684. cMsg:  text to write to dialog line
  685.  
  686. Return value:
  687. ~~~~~~~~~~~~~
  688. nil
  689.  
  690. Remarks:
  691. ~~~~~~~~
  692. Use of dialog line can be disabled by SetDialog() function.
  693.  
  694. Source code is in file  Object3.prg
  695.  
  696. !seealso: SetDialog SaveDOut RestDOut
  697.  
  698.  
  699. '####################################################################################
  700. !short:EditGetMsg (oGet,[lCanEdit]) --> true
  701. ^BEditGetMsg(oGet,[lCanEdit]) --> true:
  702. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  703.  
  704. Functions:
  705. ~~~~~~~~~~
  706. The help text is written to dialog line, help system is set on and the Get
  707. object can be viewed or edited. (EditGet() is activated)
  708.  
  709. Parameter description:
  710. ~~~~~~~~~~~~~~~~~~~~~~
  711. oGet:     clipper object to view / edit.
  712. lCanEdit: true if the editation of GET object is enabled.
  713.  
  714. Return value:
  715. ~~~~~~~~~~~~~
  716. true
  717.  
  718. Remarks:
  719. ~~~~~~~~
  720. Use of dialog line can be disabled by the function SetDialog().
  721.  
  722. Source code is in file  Object3.prg
  723.  
  724. !seealso: EditGet HelpKeys
  725.  
  726.  
  727. '####################################################################################
  728. !short:EditGet (oGet,[lCanEdit]) --> true
  729. ^BEditGet(oGet,[lCanEdit]) --> true:
  730. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  731.  
  732. Functions:
  733. ~~~~~~~~~~
  734. Get object value can be edited or viewed. This function replaces the original
  735. Clipper system GETSYS.prg .
  736.  
  737. Parameter description:
  738. ~~~~~~~~~~~~~~~~~~~~~~
  739. oGet:     clipper object to view / edit.
  740. lCanEdit: true if the edit of GET object is enabled.
  741.  
  742. Return value:
  743. ~~~~~~~~~~~~~
  744. true
  745.  
  746. Remarks:
  747. ~~~~~~~~
  748. This functiion was written because the original GETSYS.prg was too slowly.
  749.  
  750. Source code is in file  Object3.prg
  751.  
  752. !seealso: EditGetMsg HelpKeys
  753.  
  754.  
  755. '####################################################################################
  756. !short:EditIt (xValue,cMsg,cPicture,[nRow],[nCol],[cColor],[lIsPsw]) --> xRetVal
  757. ^BEditIt (xValue,cMsg,cPicture,[nRow],[nCol],[cColor],[lIsPsw]) --> xRetVal:
  758. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  759.  
  760. Functions:
  761. ~~~~~~~~~~
  762. It enables to edit the desired value in a window. It is usedfor single data item
  763. entry. For example date and time set, record number to GOTO ...
  764.  
  765. Parameter description:
  766. ~~~~~~~~~~~~~~~~~~~~~~
  767. xValue:      value to edit
  768. cMessage:    text as edited value name
  769. cPicture:    picture maskfor edited value
  770. nRow:        row to place the editing window, default is the center of the
  771.              screen.
  772. nCol:        column to place the editing window, default is the center of
  773.              the screen.
  774. cColor:      window color, default is m->Color:Edit
  775. lIsPasword:  if true, the '*' are displayed instead of entered characters
  776.              to protect the password set
  777.  
  778. Return value:
  779. ~~~~~~~~~~~~~
  780. edited value
  781.  
  782. Remarks:
  783. ~~~~~~~~
  784. It requires the public non Clipper object m->Color to exist to take the
  785. colors from it.
  786.  
  787. Source code is in file  Object3.prg
  788.  
  789. !seealso: EditGetMsg EditGet HelpKeys ob_basic.ngo:m->Color c_color.ngo:Color
  790.  
  791.  
  792. '####################################################################################
  793. !short:ErrorMessage (oError) --> cDescription
  794. ^BErrorMessage (oError) --> cDescription:
  795. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  796.  
  797. Functions:
  798. ~~~~~~~~~~
  799. The description of clipper object of Error class is generated, it is standard
  800. clipper function (see the manuals)
  801.  
  802. Source code is in file  ErrorSys.prg
  803.  
  804. !seealso: ob_comma.ngo:"BEGIN BREAK" ob_comma.ngo:BREAKIF
  805.  
  806.  
  807. '####################################################################################
  808. !short:FInfoShow (FName,R,C,Rs,Cs,Clr,Shadow) --> true/false
  809. ^BFInfoShow(FName,R,C,Rs,Cs,Clr,Shadow) --> true/false:
  810. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  811.  
  812. Functions:
  813. ~~~~~~~~~~
  814.   It enables to select the file after the FName mask and to view it by
  815.   the FInfo class object. The R,C,Rs,Cs,Clr,Shadow  parameters are
  816.   transferred down to method Init of Box class. They give position,
  817.   size and color of viewed file window. The window title is created
  818.   by function FinfoShow() by the selected filename.
  819.  
  820. Parameter description:
  821. ~~~~~~~~~~~~~~~~~~~~~~
  822. FName   select mask
  823. R       upper window border row
  824. C       left window border column
  825. Rs      number of window rows (without the border and the shadow)
  826. Cs      number of window columns (without the border and the shadow)
  827. Clr     clipper color definition (text string)
  828. Shadow  logical value to set the window shadowed (true) or no
  829.  
  830. Return value:
  831. ~~~~~~~~~~~~~
  832. the function returns true if there was selected correct file to view, and
  833. performed the FInfo class object.
  834.  
  835. Source code is in file  C_FInfo.prg
  836.  
  837. !seealso: c_finfo.ngo:FInfo
  838.  
  839.  
  840. '####################################################################################
  841. !short:GetActiveMenu () --> current_active_menu_object
  842. ^BGetActiveMenu() --> current_active_menu_object:
  843. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  844.  
  845. Functions:
  846. ~~~~~~~~~~
  847. Returns the active manu object. (usualy single for a program)
  848.  
  849. Parameter description:
  850. ~~~~~~~~~~~~~~~~~~~~~~
  851. nil
  852.  
  853. Return value:
  854. ~~~~~~~~~~~~~
  855. akctive menu object
  856.  
  857. Source code is in file  C_Menu.prg
  858.  
  859. !seealso: c_menu.ngo:Menu
  860.  
  861.  
  862. '####################################################################################
  863. !short:GetAlias (cFullFileName) --> a:\dir\ALIAS.dbf
  864. ^BGetAlias (cFullFileName) --> a:\dir\ALIAS.dbf:
  865. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  866.  
  867. Functions:
  868. ~~~~~~~~~~
  869. The filename is extracted from the pathname and extension.
  870.  
  871. Parameter description:
  872. ~~~~~~~~~~~~~~~~~~~~~~
  873. cFullFileName: full file name with pathand extension.
  874.  
  875. Return value:
  876. ~~~~~~~~~~~~~
  877. sole file name as alias for a database file opening.
  878.  
  879. Source code is in file  Object3.prg
  880.  
  881. !seealso: GetField GetSelect
  882.  
  883.  
  884. '####################################################################################
  885. !short:GetBack (cColor) --> cBackColor
  886. ^BGetBack (cColor) --> cBackColor:
  887. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  888.  
  889. Functions:
  890. ~~~~~~~~~~
  891. From set colors extracts the background color.
  892.  
  893. Parameter description:
  894. ~~~~~~~~~~~~~~~~~~~~~~
  895. cColor: clipper string color
  896.  
  897. Return value:
  898. ~~~~~~~~~~~~~
  899. background color part
  900.  
  901. Example:
  902. ~~~~~~~~
  903. ? GetBack("w/n+")   //outputs: "n+"
  904.  
  905. Source code is in file  Object3.prg
  906.  
  907. !seealso: GetFore SwapColor
  908.  
  909.  
  910. '####################################################################################
  911. !short:GetField (cFullFieldName) --> sel->FIELD
  912. ^BGetField (cFullFieldName) --> sel->FIELD:
  913. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  914.  
  915. Functions:
  916. ~~~~~~~~~~
  917. From full filedname takes only the name of the field.
  918.  
  919. Parameter description:
  920. ~~~~~~~~~~~~~~~~~~~~~~
  921. cFullFieldName: full database fieldname (select->field)
  922.  
  923. Return value:
  924. ~~~~~~~~~~~~~
  925. only the field part without the select part of fieldname
  926.  
  927. Example:
  928. ~~~~~~~~
  929. ? GetField("select->field")   //outputs: "field"
  930.  
  931. Source code is in file  Object3.prg
  932.  
  933. !seealso: GetSelect GetAlias
  934.  
  935.  
  936. '####################################################################################
  937. !short:GetFore (cColor) --> cForeColor
  938. ^BGetFore (cColor) --> cForeColor:
  939. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  940.  
  941. Functions:
  942. ~~~~~~~~~~
  943. From set colors extracts the foreground color.
  944.  
  945. Parameter description:
  946. ~~~~~~~~~~~~~~~~~~~~~~
  947. cColor: clipper string color
  948.  
  949. Return value:
  950. ~~~~~~~~~~~~~
  951. foreground color part
  952.  
  953. Example:
  954. ~~~~~~~~
  955. ? GetFore("w/n+")   //outputs: "w"
  956.  
  957. Source code is in file  Object3.prg
  958.  
  959. !seealso: GetBack SwapColor
  960.  
  961.  
  962. '####################################################################################
  963. !short:GetKey (nSecs) --> nInkeyCode
  964. ^BGetKey (nSecs) --> nInkeyCode:
  965. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  966.  
  967. Functions:
  968. ~~~~~~~~~~
  969. It replaces the clipper function InKey(), but when waiting for keypressing
  970. is the time displayed (if enabled by SetShowTime()), and the text set by
  971. ShowText() function is displayed (if enabled by SetShowText()).
  972.  
  973. Parameter description:
  974. ~~~~~~~~~~~~~~~~~~~~~~
  975. nSecs: number of seconds to wait for a keypressing if 0 - unlimited wait,
  976.        if nil - no waiting.
  977.  
  978. Return value:
  979. ~~~~~~~~~~~~~
  980. nInkeyCode: keypressed code, if no key pressed returns 0
  981.  
  982. Source code is in file  Object3.prg
  983.  
  984. !seealso: ShowText ShowTime SetShowTime SetShowText
  985.  
  986.  
  987. '####################################################################################
  988. !short:GetLastDbf () --> last_object_of_Dbf
  989. ^BGetLastDbf() --> last_object_of_Dbf:
  990. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  991.  
  992. Functions:
  993. ~~~~~~~~~~
  994. Returns current (last defined) Dbf class object.
  995.  
  996. Parameter description:
  997. ~~~~~~~~~~~~~~~~~~~~~~
  998. nil
  999.  
  1000. Return value:
  1001. ~~~~~~~~~~~~~
  1002. current (last defined) Dbf class object.
  1003.  
  1004. Source code is in file  C_Dbf.prg
  1005.  
  1006. !seealso: c_dbf.ngo:Dbf
  1007.  
  1008.  
  1009. '####################################################################################
  1010. !short:GetNewRepName () --> new_report_file_name
  1011. ^BGetNewRepName () --> new_report_file_name:
  1012. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1013.  
  1014. Functions:
  1015. ~~~~~~~~~~
  1016. The unique filename for report storing is created from first four characters
  1017. "SysR" following with four digits, to produce the dos - unique filename in
  1018. current directory, with TXT extension.
  1019.  
  1020. Parameter description:
  1021. ~~~~~~~~~~~~~~~~~~~~~~
  1022. nil
  1023.  
  1024. Return value:
  1025. ~~~~~~~~~~~~~
  1026. unique filename for the report.
  1027.  
  1028. Source code is in file  c_info.prg.
  1029.  
  1030. !seealso: c_info.ngo:Info c_finfo.ngo:FInfo c_report.ngo:Report
  1031.  
  1032.  
  1033. '####################################################################################
  1034. !short:GetOneDbf (cName) --> object_of_OneDbf
  1035. ^BGetOneDbf(cName) --> object_of_OneDbf:
  1036. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1037.  
  1038. Functions:
  1039. ~~~~~~~~~~
  1040. The object of OneDbf class is searched, which database is opened in cName
  1041. workarea, cName is alias name for the area. If found returns the object,
  1042. if not returns nil.
  1043.  
  1044. Parameter description:
  1045. ~~~~~~~~~~~~~~~~~~~~~~
  1046. cName  alias - selects the area for OneDbf class object
  1047.  
  1048. Return value:
  1049. ~~~~~~~~~~~~~
  1050. object of OneDbf class or nil
  1051.  
  1052.  
  1053. Source code is in file  C_Dbf.prg
  1054.  
  1055. !seealso: c_dbf.ngo:Dbf
  1056.  
  1057.  
  1058. '####################################################################################
  1059. !short:GetSelect (cFullFieldName) --> SELECT->fld
  1060. ^BGetSelect (cFullFieldName) --> SELECT->field:
  1061. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1062.  
  1063. Functions:
  1064. ~~~~~~~~~~
  1065. Full fieldname select part is extracted.
  1066.  
  1067. Parameter description:
  1068. ~~~~~~~~~~~~~~~~~~~~~~
  1069. cFullFieldName: full database fieldname (select->field)
  1070.  
  1071. Return value:
  1072. ~~~~~~~~~~~~~
  1073. select part of the fieldname
  1074.  
  1075. Example:
  1076. ~~~~~~~~
  1077. ? GetSelect("select->field")   //outputs: "select"
  1078.  
  1079. Source code is in file  Object3.prg
  1080.  
  1081. !seealso: GetField GetAlias
  1082.  
  1083.  
  1084. '####################################################################################
  1085. !short:GetTList () --> TList
  1086. ^BGetTList() --> TList:
  1087. ~~~~~~~~~~~~~~~~~~~~
  1088.  
  1089. Functions:
  1090. ~~~~~~~~~~
  1091.   The Tlist array is returned (all task class derived objects and its
  1092.   children stack).
  1093.  
  1094. Parameter description:
  1095. ~~~~~~~~~~~~~~~~~~~~~~
  1096. nil
  1097.  
  1098. Return value:
  1099. ~~~~~~~~~~~~~
  1100. all task class derived objects and its children stack
  1101.  
  1102. Source code is in file  C_Task.prg.
  1103.  
  1104. !seealso: c_task.ngo:Task
  1105.  
  1106.  
  1107. '####################################################################################
  1108. !short:GetVList () --> VList
  1109. ^BGetVList() --> VList:
  1110. ~~~~~~~~~~~~~~~~~~~~
  1111.  
  1112. Functions:
  1113. ~~~~~~~~~~
  1114. Returns View objects stack.
  1115.  
  1116. Parameter description:
  1117. ~~~~~~~~~~~~~~~~~~~~~~
  1118. nil
  1119.  
  1120. Return value:
  1121. ~~~~~~~~~~~~~
  1122. view objects stack
  1123.  
  1124.  
  1125. Source code is in file C_View.prg
  1126.  
  1127. !seealso: c_view.ngo:View
  1128.  
  1129.  
  1130. '####################################################################################
  1131. !short:GetWList () --> WList
  1132. ^BGetWList() --> WList:
  1133. ~~~~~~~~~~~~~~~~~~~~
  1134.  
  1135. Functions:
  1136. ~~~~~~~~~~
  1137. Returns the array used as windows stack. The active window should be on the
  1138. top.
  1139.  
  1140. Parameter description:
  1141. ~~~~~~~~~~~~~~~~~~~~~~
  1142. nil
  1143.  
  1144. Return value:
  1145. ~~~~~~~~~~~~~
  1146. Window class alive object list
  1147.  
  1148. Source code is in file  c_window.prg
  1149.  
  1150. !seealso: c_window.ngo:Window
  1151.  
  1152.  
  1153. '####################################################################################
  1154. !short:GoodBye () --> true
  1155. ^BGoodBye () --> true:
  1156. ~~~~~~~~~~~~~~~~~~~~
  1157.  
  1158. Functions:
  1159. ~~~~~~~~~~
  1160. The text "Good Bye" is written to the screen and the song is playing till
  1161. the keypressed.
  1162.  
  1163. Parameter description:
  1164. ~~~~~~~~~~~~~~~~~~~~~~
  1165. nil
  1166.  
  1167. Return value:
  1168. ~~~~~~~~~~~~~
  1169. true
  1170.  
  1171. Source code is in file  Object3.prg.
  1172.  
  1173. !seealso: BlueDanu
  1174.  
  1175.  
  1176. '####################################################################################
  1177. !short:GoodRun (cmd) --> true
  1178. ^BGoodRun (cmd) --> true:
  1179. ~~~~~~~~~~~~~~~~~~~~~~~
  1180.  
  1181. Functions:
  1182. ~~~~~~~~~~
  1183. Clipper RUN command is performed in indenpendent module to optimise
  1184. the memory usage.
  1185.  
  1186. Parameter description:
  1187. ~~~~~~~~~~~~~~~~~~~~~~
  1188. cmd: parameter send to command line interpreter (COMMAND.COM).
  1189.  
  1190. Return value:
  1191. ~~~~~~~~~~~~~
  1192. true
  1193.  
  1194. Source code is in file  Objec4.prg.
  1195.  
  1196. !seealso:
  1197.  
  1198.  
  1199. '####################################################################################
  1200. !short:HelpAssoc (Txt,VarName,[N]) --> N
  1201. ^BHelpAssoc (Txt,VarName,[N]) --> N:
  1202. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1203.  
  1204. Functions:
  1205. ~~~~~~~~~~
  1206. The unique system name of Txt variable and its user name VarName and
  1207. the index to help database are stored to to Association array. This array
  1208. is used by the HelpField() function as context sensitive help text for
  1209. current edited field or menu item. If N was set, all parameters are appended
  1210. to Association array, if not, N is searched in the array for.
  1211.  
  1212. Parameter description:
  1213. ~~~~~~~~~~~~~~~~~~~~~~
  1214. Txt:    System (unique) identifier;
  1215.         there are following names used by the library:
  1216.           ALIAS->FIELD    for each database field
  1217.           SYS:->VARNAME   memory variables used for the objects of ABrowse
  1218.                           class
  1219.           MEMORY->VARNAME where the varname is the name of the memory
  1220.                           variable used in methods AddBlock(...) of Browse
  1221.                           class and its descendants.
  1222. VarName: is the user name displayed in help window as its title.
  1223. N:       is the index to help database, which text is written to the help
  1224.          window.
  1225.  
  1226. Return value:
  1227. ~~~~~~~~~~~~~
  1228. help database index
  1229.  
  1230. Source code is in file  Objec2.prg.
  1231.  
  1232. !seealso: ChangeAssoc HelpField HelpReserved ReadHelpVar
  1233.  
  1234.  
  1235. '####################################################################################
  1236. !short:HelpField () --> true/false
  1237. ^BHelpField () --> true/false:
  1238. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1239.  
  1240. Functions:
  1241. ~~~~~~~~~~
  1242. Context sensditive help for edited data or current menu item, selected from
  1243. Association array by the function HelpAssoc(ReadHelpVar()).
  1244.  
  1245. Parameter description:
  1246. ~~~~~~~~~~~~~~~~~~~~~~
  1247. nil, activated commonly by SHIFT_F1.
  1248.  
  1249. Return value:
  1250. ~~~~~~~~~~~~~
  1251. True, if the help text was found and displayed.
  1252.  
  1253. Source code is in file  Object2.prg.
  1254.  
  1255. !seealso: ReadHelpVar HelpAssoc ChangeAssoc HelpKeys
  1256.  
  1257.  
  1258. '####################################################################################
  1259. !short:HelpKeys () --> true/false
  1260. ^BHelpKeys () --> true/false:
  1261. ~~~~~~~~~~~~~~~~~~~~~~~~~~
  1262.  
  1263. Functions:
  1264. ~~~~~~~~~~
  1265. This function is activated when user pressed F1 key or SHIFT-F1. It presents
  1266. the used keys description as help for the user. Displayed are the text
  1267. strings selected by SaveHelpIdx() funct.
  1268.  
  1269. Parameter description:
  1270. ~~~~~~~~~~~~~~~~~~~~~~
  1271. nil
  1272.  
  1273. Return value:
  1274. ~~~~~~~~~~~~~
  1275. true
  1276.  
  1277. Remarks:
  1278. ~~~~~~~~
  1279. The text strings are stored in twodimensional array in HelpKeys() function.
  1280. Displayed are the subarrays selected by the SaveHelpIdx(). The input
  1281. parameter is the index list to array of text strings inside of HelpKeys().
  1282.  
  1283. Example:
  1284. ~~~~~~~~
  1285.      SaveHelpIdx( {1,2,5,6} )
  1286.      HelpKeys()
  1287.      RestHelpIdx()
  1288.      ...
  1289. The SaveHelpIdx() function stores the current information about the subarrays
  1290. to display, and prepares the subarrays 1,2,5 and 6 to be displayed by
  1291. HelpKeys(). Activating of it is the help text dispplayed (the subaarrays
  1292. 1,2,5 and 6). The restHelpIdx() function restores the previous status of
  1293. help displaying.
  1294.  
  1295. Source code is in file  Object2.prg
  1296.  
  1297. !seealso: SaveHelpIdx RestHelpIdx
  1298.  
  1299.  
  1300. '####################################################################################
  1301. !short:HelpReserved (nNew,nAdd) --> nOldValue
  1302. ^BHelpReserved (nNew,nAdd) --> nOldValue:
  1303. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1304.  
  1305. Functions:
  1306. ~~~~~~~~~~
  1307. Have a look on the following eexamples:
  1308.  
  1309. HelpReserved(nNew)
  1310. There are nNew items reserved in help database for your aplication.
  1311. The RecNo() of help databse will be 1 .. nNew.
  1312.  
  1313. HelpReserved(,nAdd)
  1314. The reserved items are appended with next nAdd items.
  1315.  
  1316. HelpReserved()
  1317. It returns the numbr of reserved items in help database.
  1318.  
  1319. Warning!
  1320. The initioalising of objects of Dbf,View,Mnu classes causes the reeservetion
  1321. of items in help database. If you want to have your own memvars and help text
  1322. conected to them, make the reservation before the object of Dbf class is
  1323. created. By HelpAssoc() function dd the variable name and other parameters
  1324. to Association array, and after the creation of GET object select the right
  1325. get:Name to be identical and unique with your variable name.
  1326.  
  1327. Example:
  1328. ~~~~~~~~
  1329. //creation of a help
  1330. HelpAssoc("MEMORY->MYVAR",My variable",HelpReserved(,+1))
  1331. object oD of Dbf init ...   //databse object created
  1332. ...
  1333. ...
  1334. //creation and editation of My variable
  1335. LOCAL MyVar:=Space(10)
  1336. LOCAL g:=GetNew(....)
  1337. g:Name:="MEMORY->MYVAR"
  1338. EditGet(g) //the library OBJECT.lib maintains the help system function
  1339. ...
  1340.  
  1341.  
  1342. Return value:
  1343. ~~~~~~~~~~~~~
  1344. number of reseved help database items
  1345.  
  1346. Source code is in file  Objec2.prg.
  1347.  
  1348. !seealso: HelpField HelpAssoc ChangeAssoc ReadHelpVar HelpKeys
  1349.  
  1350.  
  1351. '####################################################################################
  1352. !short:IEval (nCount,bBlock) --> xValue
  1353. ^BIEval (nCount,bBlock) --> xValue:
  1354. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1355.  
  1356. Functions:
  1357. ~~~~~~~~~~
  1358.  
  1359. repeats nCount times performing of code block bBlock.
  1360.  
  1361. Parameter description:
  1362. ~~~~~~~~~~~~~~~~~~~~~~
  1363. nCount:  number of repetitions of performing the bBlock
  1364. bBlock:  the code block to perform nCount times
  1365.  
  1366. Return value:
  1367. ~~~~~~~~~~~~~
  1368. the result of last code block performing
  1369.  
  1370. Remarks:
  1371. ~~~~~~~~
  1372. It is a form of FOR loop.
  1373.  
  1374. Example:
  1375. ~~~~~~~~
  1376.      IEval(3,{|i|QQOut(i)})
  1377.      ...
  1378. Writes the numbers 1, 2 a 3.
  1379.  
  1380. Source code is in file  Object3.prg
  1381.  
  1382. !seealso: WEval
  1383.  
  1384.  
  1385. '####################################################################################
  1386. !short:IncludeFunctions () --> true
  1387. ^BIncludeFunctions () --> true:
  1388. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1389.  
  1390. Functions:
  1391. ~~~~~~~~~~
  1392. It serves for linking all useable functions to the *.exe file to make
  1393. them useable in user index and filters definitions.
  1394.  
  1395. Parameter description:
  1396. ~~~~~~~~~~~~~~~~~~~~~~
  1397. nil
  1398.  
  1399. Return value:
  1400. ~~~~~~~~~~~~~
  1401. true
  1402.  
  1403. Source code is in file  Object3.prg.
  1404.  
  1405. !seealso:
  1406.  
  1407.  
  1408. '####################################################################################
  1409. !short:InKeyWait ([nSecs]) --> nKey
  1410. ^BInKeyWait ([nSecs]) --> nKey:
  1411. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1412.  
  1413. Functions:
  1414. ~~~~~~~~~~
  1415. The same as InKey(), but if it was pressed a key which activates a code block
  1416. set by SetKey(), this code block is performed. Inkey() only returns the key
  1417. code InkeyWait() returns it too and if there is assigned code block it is
  1418. performed.
  1419.  
  1420. Parameter description:
  1421. ~~~~~~~~~~~~~~~~~~~~~~
  1422. nSecs: time (in seconds) how long to wait for a keypressing
  1423.  
  1424. Return value:
  1425. ~~~~~~~~~~~~~
  1426. keypressed code
  1427.  
  1428. Example:
  1429. ~~~~~~~~
  1430.      SetKey(K_F1,{||HelpKeys()})
  1431.      ? InKeyWait(0)
  1432.      ...
  1433. It hangs on the F1 key the function HelpKeys() and waits for a keypressing.
  1434. if there was pressed a F1 key the HelpKeys() function is performed and the
  1435. inkey code of F1 code is printed, if there was other key pressed (without
  1436. assigned a function), only a pressed key code is printed.
  1437.  
  1438. Source code is in file  Object3.prg
  1439.  
  1440. !seealso: PauseKey StuffKey StuffKeys SetLastKey
  1441.  
  1442.  
  1443. '####################################################################################
  1444. !short:ListAsArray (cList,[cDelimiter]) --> aList
  1445. ^BListAsArray (cList,[cDelimiter]) --> aList:
  1446. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1447.  
  1448. Functions:
  1449. ~~~~~~~~~~
  1450. The string is converted to an array.
  1451.  
  1452. Parameter description:
  1453. ~~~~~~~~~~~~~~~~~~~~~~
  1454. cList:      text string to convert
  1455. cDelimiter: elements delimiter, default is ','
  1456.  
  1457. Return value:
  1458. ~~~~~~~~~~~~~
  1459. array of elements created from a text string
  1460.  
  1461. Example:
  1462. ~~~~~~~~
  1463.      x:=ListAsArray("a,b,c,d")  //x:={"a","b","c","d"}
  1464.      ...
  1465.  
  1466. Source code is in file  Object3.prg
  1467.  
  1468.  
  1469. '####################################################################################
  1470. !short:LogClear () --> true/false
  1471. ^BLogClear () --> true/false:
  1472. ~~~~~~~~~~~~~~~~~~~~~~~~~~
  1473.  
  1474. Functions:
  1475. ~~~~~~~~~~
  1476. Clears the counter of working users.
  1477.  
  1478. Parameter description:
  1479. ~~~~~~~~~~~~~~~~~~~~~~
  1480. nil
  1481.  
  1482. Return value:
  1483. ~~~~~~~~~~~~~
  1484. true if the counter was cleared
  1485.  
  1486. Remarks:
  1487. ~~~~~~~~
  1488. Counter is a ViewID field in the first record in OBasic1.dbf
  1489.  
  1490. Example:
  1491. ~~~~~~~~
  1492.     select OBasic1
  1493.     Go 1
  1494.     ? Obasic1->ViewID   //the current working users number is printed
  1495.  
  1496. Source code is in file  Object3.prg
  1497.  
  1498. !seealso: LogOn LogOff
  1499.  
  1500.  
  1501. '####################################################################################
  1502. !short:LogOff () --> true/false
  1503. ^BLogOff () --> true/false:
  1504. ~~~~~~~~~~~~~~~~~~~~~~~~~
  1505.  
  1506. Functions:
  1507. ~~~~~~~~~~
  1508. Decrements the current number enabled to work by one.
  1509.  
  1510. Parameter description:
  1511. ~~~~~~~~~~~~~~~~~~~~~~
  1512. nil
  1513.  
  1514. Return value:
  1515. ~~~~~~~~~~~~~
  1516. true if it was success to decrement by one
  1517.  
  1518. Remarks:
  1519. ~~~~~~~~
  1520. Counter is the ViewId field of first record in OBasic1.dbf. After first
  1521. starting of the program it is Performed LogOn() automaticaly, after finishing
  1522. of program the LogOff(). The LogXXX functions are used for reindex after first
  1523. running when a emergency (aborted) finish of the program was detected.
  1524. The most interesting use of LogXXX functions is in Dbf class in method Open()
  1525. If you end the program indenpendently by own quit command, don't forget to
  1526. perform the LogOff() befor a quit. More conveenient is to let the program
  1527. to end it by itself.
  1528.  
  1529. Example:
  1530. ~~~~~~~~
  1531.     LogOff()
  1532.     ? "Quitting..."
  1533.     quit
  1534.  
  1535. Source code is in file  Object3.prg
  1536.  
  1537. !seealso: LogOn LogClear c_dbf.ngo:Dbf
  1538.  
  1539.  
  1540. '####################################################################################
  1541. !short:LogOn () --> true/false
  1542. ^BLogOn () --> true/false:
  1543. ~~~~~~~~~~~~~~~~~~~~~~~~
  1544.  
  1545. Functions:
  1546. ~~~~~~~~~~
  1547. Increase of the user counter by one.
  1548.  
  1549. Parameter description:
  1550. ~~~~~~~~~~~~~~~~~~~~~~
  1551. nil
  1552.  
  1553. Return value:
  1554. ~~~~~~~~~~~~~
  1555. true if increasing of the user counter was done, otherwise false.
  1556.  
  1557. Remarks:
  1558. ~~~~~~~~
  1559. Counter is the ViewId field of first record in OBasic1.dbf. After first
  1560. starting of the program it is Performed LogOn() automaticaly, after
  1561. finishing of program the LogOff(). The LogXXX functions are used for
  1562. reindex after first running when a emergency (aborted) finish of the
  1563. program was detected. The most interesting use of LogXXX functions
  1564. is in Dbf class in method Open(). If you end the program indenpendently
  1565. by own quit command, don't forget to perform the LogOff() befor a quit.
  1566. More conveenient is to let the program to end it by itself.
  1567.  
  1568. Source code is in file  Object3.prg
  1569.  
  1570. !seealso: LogOn LogClear c_dbf.ngo:Dbf
  1571.  
  1572.  
  1573. '####################################################################################
  1574. !short:LogSet (nUsers) --> nUsers
  1575. ^BLogSet (nUsers) --> nUsers:
  1576. ~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1577.  
  1578. Functions:
  1579. ~~~~~~~~~~
  1580. If performed without parameters, it returns the current working user
  1581. count, if performed with parameter, the max. user working the same time
  1582. is set.
  1583.  
  1584. Parameter description:
  1585. ~~~~~~~~~~~~~~~~~~~~~~
  1586. nUsers:
  1587.  
  1588. Return value:
  1589. ~~~~~~~~~~~~~
  1590. number of concurent working users
  1591.  
  1592. Source code is in file  Object3.prg.
  1593.  
  1594. !seealso: LogOn LogOff LogClear
  1595.  
  1596.  
  1597. '####################################################################################
  1598. !short:Memo (bVar,lEdit,[cTitle],[R],[C],[RSize],[CSize],[CurSize],[Clr],[lShd])
  1599. ^BMemo (bVar,lEdit,[cTitle],[R],[C],[RSize],[CSize],[CurSize],[Clr],[lShd]):
  1600. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1601.  
  1602. Functions:
  1603. ~~~~~~~~~~
  1604. The memo field is edited or viewed, or any text defined with get/set
  1605. code block.
  1606.  
  1607. Parameter description:
  1608. ~~~~~~~~~~~~~~~~~~~~~~
  1609. bVar:      get/set code block created i.g. by FieldWBlock(), it is the
  1610.            item to edit
  1611. lEdit:     true it can be edited
  1612. cTitle:    editation window title, default is "Text"
  1613. R:         top edit window border (default- cursor position)
  1614. C:         left edit window border (default - cursor position)
  1615. RSize:     edited window size, row count, default is MaxRow()/3
  1616. CSize:     edited window size, col count, default is MaxCol()/2
  1617. CurSize:   system attempts to position the window nearest to the R,C
  1618.            coordinate not to cover the CurSize() characters on this
  1619.            coordinate.
  1620. Clr:       window color, default is m->Color:Edit or m->Color:View
  1621. lShd:      true if to paint a shadow, default is true for color monitors,
  1622.            false for mono.
  1623.  
  1624. Return value:
  1625. ~~~~~~~~~~~~~
  1626. edited text
  1627.  
  1628. Remarks:
  1629. ~~~~~~~~
  1630. for color definition is a public non-clipper object m->Color used.
  1631.  
  1632. Source code is in file  Object3.prg
  1633.  
  1634. !seealso: SetMemoWrap EditGetMsg c_color.ngo:Color ob_basic.ngo:m->Color
  1635.  
  1636.  
  1637. '####################################################################################
  1638. !short:MidStr (S,l,r) --> cString
  1639. ^BMidStr (S,l,r) --> cString:
  1640. ~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1641.  
  1642. Functions:
  1643. ~~~~~~~~~~
  1644. Returns a text string S shortened of l-1 character from left and r-1
  1645. from right. It returns a middle of the text string from a position l
  1646. to a position r.
  1647.  
  1648. Parameter description:
  1649. ~~~~~~~~~~~~~~~~~~~~~~
  1650. S:  text string to shorten from both sides
  1651. l:  character number to shorten from the left side
  1652. r:  character number to shorten from the right side
  1653.  
  1654. Return value:
  1655. ~~~~~~~~~~~~~
  1656. shortened string
  1657.  
  1658. Example:
  1659. ~~~~~~~~
  1660.     ? MidStr("1-Hello-21",2,3)  //-Hello- is printed
  1661.  
  1662. Source code is in file  Object3.prg
  1663.  
  1664. !seealso:
  1665.  
  1666.  
  1667. '####################################################################################
  1668. !short:NetCreateFrom (cFile1,cFile2,[lContinue]) --> true/false
  1669. ^BNetCreateFrom (cFile1,cFile2,[lContinue]) --> true/false:
  1670. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1671.  
  1672. Functions:
  1673. ~~~~~~~~~~
  1674. It is a functional equivalent of NET CREATE ... FROM ...
  1675.  
  1676. Parameter description:
  1677. ~~~~~~~~~~~~~~~~~~~~~~
  1678. cFile1:    database file name to create
  1679. cFile2:    databse file name of database file describing the dbf file
  1680.            structure to create.
  1681. lContinue: if true it can be continued in a program after failed
  1682.            cursor creation.
  1683.  
  1684. Return value:
  1685. ~~~~~~~~~~~~~
  1686. true if the database files was corectly created
  1687. false it is nat possible to create the file
  1688.  
  1689. Source code is in file  Object3.prg
  1690.  
  1691. !seealso: NetDbCreate ob_comma.ngo:"NET CREATE"
  1692.  
  1693.  
  1694. '####################################################################################
  1695. !short:NetDbAppend ([lContinue]) --> true/false
  1696. ^BNetDbAppend ([lContinue]) --> true/false:
  1697. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1698.  
  1699. Functions:
  1700. ~~~~~~~~~~
  1701. Functional variant of NET APPEND BLANK ... command
  1702.  
  1703. Parameter description:
  1704. ~~~~~~~~~~~~~~~~~~~~~~
  1705.  
  1706. lContinue: if true the program can continue, also when
  1707.            file creation failed.
  1708.  
  1709. Return value:
  1710. ~~~~~~~~~~~~~
  1711. true if the record was appended to a file.
  1712.  
  1713. Source code is in file  Object3.prg
  1714.  
  1715. !seealso: NetDbDelete NetDbRecall ob_comma.ngo:"NET APPEND BLANK"
  1716.  
  1717.  
  1718. '####################################################################################
  1719. !short:NetDbCreate (cFile,aStructure,[lContinue]) --> true/false
  1720. ^BNetDbCreate (cFile,aStructure,[lContinue]) --> true/false:
  1721. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1722.  
  1723. Functions:
  1724. ~~~~~~~~~~
  1725. Net variant of Clipper command DbCreate()
  1726.  
  1727. Parameter description:
  1728. ~~~~~~~~~~~~~~~~~~~~~~
  1729. cFile:       database file name to create
  1730. aStructure:  dbf file structure describing the file structure to create
  1731. lContinue:   if true it can be continued also when creation failed.
  1732.  
  1733. Return value:
  1734. ~~~~~~~~~~~~~
  1735. True if the file was correctly created
  1736.  
  1737. Source code is in file  Object3.prg
  1738.  
  1739. !seealso: NetCreateFrom ob_comma.ngo:"NET CREATE"
  1740.  
  1741.  
  1742. '####################################################################################
  1743. !short:NetDbDelete ([lContinue]) --> true/false
  1744. ^BNetDbDelete ([lContinue]) --> true/false:
  1745. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1746.  
  1747. Functions:
  1748. ~~~~~~~~~~
  1749. Functional variant of NET DELETE command, the selected record of
  1750. selected database is marked for deletion
  1751.  
  1752. Parameter description:
  1753. ~~~~~~~~~~~~~~~~~~~~~~
  1754. lContinue: if true you can continue after the deleted marking failed
  1755.  
  1756. Return value:
  1757. ~~~~~~~~~~~~~
  1758. true if the record is marked for deleting
  1759. false if the deleted marked sign  production failed
  1760.  
  1761. Source code is in file  Object3.prg
  1762.  
  1763. !seealso: NetDbRecall NetDbAppend ob_comma.ngo:"NET RECALL" ob_comma.ngo:"NET DELETE"
  1764.  
  1765.  
  1766. '####################################################################################
  1767. !short:NetDbRecall ([lContinue]) --> true/false
  1768. ^BNetDbRecall ([lContinue]) --> true/false:
  1769. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1770.  
  1771. Functions:
  1772. ~~~~~~~~~~
  1773. Functional variant of NET RECALL command
  1774. recalls the records marked as deleted, inverse to NetDBDelete()
  1775. function. For detailed description see commands.
  1776.  
  1777. Parameter description:
  1778. ~~~~~~~~~~~~~~~~~~~~~~
  1779. lContinue: if true, it can continue whether the recall failed or no.
  1780.  
  1781. Return value:
  1782. ~~~~~~~~~~~~~
  1783. true if the recall succeeded, false if no.
  1784.  
  1785. Source code is in file  Object3.prg
  1786.  
  1787. !seealso: NetDbDelete NetDbAppend ob_comma.ngo:"NET DELETE" ob_comma.ngo:"NET RECALL"
  1788.  
  1789.  
  1790. '####################################################################################
  1791. !short:NetDbUseArea (new,rdd,db,a,shex,ro,[lContinue]) --> true/false
  1792. ^BNetDbUseArea (new,rdd,db,a,shex,ro,[lContinue]) --> true/false:
  1793. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1794.  
  1795. Functions:
  1796. ~~~~~~~~~~
  1797. functional variant of NET USE command
  1798. The same as clipper function DBUseArea() but serves the network problems,
  1799. with same parameters except of lContinue.
  1800.  
  1801. Parameter description:
  1802. ~~~~~~~~~~~~~~~~~~~~~~
  1803. lContinue: if true, it can continue whether the net use failed or no
  1804.  
  1805. Return value:
  1806. ~~~~~~~~~~~~~
  1807. true if databse opening succeded false if no
  1808.  
  1809. Source code is in file  Object3.prg
  1810.  
  1811. !seealso: NetIndexOn NetSetIndex ob_comma.ngo:"NET USE"
  1812.  
  1813.  
  1814. '####################################################################################
  1815. !short:NetFErase (cFile,[lContinue]) --> true/false
  1816. ^BNetFErase (cFile,[lContinue]) --> true/false:
  1817. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1818.  
  1819. Functions:
  1820. ~~~~~~~~~~
  1821. Functional variant of NET ERASE command described in commmands part
  1822.  
  1823. Parameter description:
  1824. ~~~~~~~~~~~~~~~~~~~~~~
  1825. cFile:     filename to delete
  1826. lContinue: if true, it can continue whether the erase failed or no
  1827.  
  1828. Return value:
  1829. ~~~~~~~~~~~~~
  1830. true if the file was deleted false if no
  1831.  
  1832. Source code is in file  Object3.prg
  1833.  
  1834. !seealso: ob_comma.ngo:"NET ERASE"
  1835.  
  1836.  
  1837. '####################################################################################
  1838. !short:NetFLock ([lContinue]) --> true/false
  1839. ^BNetFLock ([lContinue]) --> true/false:
  1840. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1841.  
  1842. Functions:
  1843. ~~~~~~~~~~
  1844. Functional variant of NET FLOCK command
  1845.  
  1846. Parameter description:
  1847. ~~~~~~~~~~~~~~~~~~~~~~
  1848. lContinue: if true, it can continue whether the flock failed or no
  1849.  
  1850. Return value:
  1851. ~~~~~~~~~~~~~
  1852. trueif the file was locked false if no
  1853.  
  1854. Source code is in file  Object3.prg
  1855.  
  1856. !seealso: NetRLock NetReIndex ob_comma.ngo:"NET FLOCK" ob_comma.ngo:"NET RLOCK"
  1857.  
  1858.  
  1859. '####################################################################################
  1860. !short:NetIndexOn (cFile,cKey,[bKey],[lUnique],[lContinue]) --> true/false
  1861. ^BNetIndexOn (cFile,cKey,[bKey],[lUnique],[lContinue]) --> true/false:
  1862. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1863.  
  1864. Functions:
  1865. ~~~~~~~~~~
  1866. Functional variant of NET INDEX ON command, decribed in command chapter
  1867.  
  1868. Parameter description:
  1869. ~~~~~~~~~~~~~~~~~~~~~~
  1870. cFile:     index file to create
  1871. cKey:      index key in form of string
  1872. bKey:      index key as a code block, if nothing is set the function
  1873.            creates it
  1874. lUnique:   sets the index to unique, if nothing set the value is taken
  1875.            from system SET UNIQUE ON/OFF
  1876. lContinue: if true, it can continue whether the index creation failed
  1877.            or no
  1878.  
  1879. Return value:
  1880. ~~~~~~~~~~~~~
  1881. true if index file was created, false if no
  1882.  
  1883. Source code is in file  Object3.prg
  1884.  
  1885. !seealso: NetReIndex ob_comma.ngo:"NET INDEX ON" ob_comma.ngo:"NET REINDEX"
  1886.  
  1887.  
  1888. '####################################################################################
  1889. !short:NetLimit (new) --> old
  1890. ^BNetLimit (new) --> old:
  1891. ~~~~~~~~~~~~~~~~~~~~~~~
  1892.  
  1893. Functions:
  1894. ~~~~~~~~~~
  1895. The get set function to maintain the maximal allowed user number to run
  1896. the program default 999.
  1897.  
  1898. Parameter description:
  1899. ~~~~~~~~~~~~~~~~~~~~~~
  1900. new: maximal allowed user number
  1901.  
  1902. Return value:
  1903. ~~~~~~~~~~~~~
  1904. old: maximal allowed user number
  1905.  
  1906. Example:
  1907. ~~~~~~~~
  1908. NetLimit(2) //must be set before the function OBjectInit(...)
  1909.             //program has two users
  1910.  
  1911. Source code is in file  Object3.prg.
  1912.  
  1913. !seealso: LogOn LogOff LogSet
  1914.  
  1915.  
  1916. '####################################################################################
  1917. !short:NetPack ([lContinue]) --> true/false
  1918. ^BNetPack ([lContinue]) --> true/false:
  1919. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1920.  
  1921. Functions:
  1922. ~~~~~~~~~~
  1923. Functional variant of NET PACK command, described in commands chapter
  1924.  
  1925. Parameter description:
  1926. ~~~~~~~~~~~~~~~~~~~~~~
  1927. lContinue: if true, it can continue whether the pack failed or no
  1928.  
  1929. Return value:
  1930. ~~~~~~~~~~~~~
  1931. true if pack succeeded false if no
  1932.  
  1933. Source code is in file  Object3.prg
  1934.  
  1935. !seealso: NetZap NetReIndex ob_comma.ngo:"NET PACK" ob_comma.ngo:"NET ZAP" ob_comma.ngo:"NET REINDEX"
  1936.  
  1937.  
  1938. '####################################################################################
  1939. !short:NetReIndex ([lContinue]) --> true/false
  1940. ^BNetReIndex ([lContinue]) --> true/false:
  1941. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1942.  
  1943. Functions:
  1944. ~~~~~~~~~~
  1945. Functional variant of NET REINDEX command, described in commnads chapter
  1946.  
  1947. Parameter description:
  1948. ~~~~~~~~~~~~~~~~~~~~~~
  1949. lContinue: if true, it can continue whether the reindex failed or no
  1950.  
  1951. Return value:
  1952. ~~~~~~~~~~~~~
  1953. true if reindex succeeded, false if no
  1954.  
  1955. Source code is in file  Object3.prg
  1956.  
  1957. !seealso: NetIndexOn NetSetIndex ob_comma.ngo:"NET REINDEX" ob_comma.ngo:"NET INDEX ON"
  1958.  
  1959.  
  1960. '####################################################################################
  1961. !short:NetRLock ([lContinue]) --> true/false
  1962. ^BNetRLock ([lContinue]) --> true/false:
  1963. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1964.  
  1965. Functions:
  1966. ~~~~~~~~~~
  1967. Functional variant of NET RLOCK command described in command chapter
  1968.  
  1969. Parameter description:
  1970. ~~~~~~~~~~~~~~~~~~~~~~
  1971. lContinue: if true, it can continue whether the net rlock failed or no
  1972.  
  1973. Return value:
  1974. ~~~~~~~~~~~~~
  1975. true if the record was locked, false if no
  1976.  
  1977. Source code is in file  Object3.prg
  1978.  
  1979. !seealso: NetFLock NetDbAppend NetReIndex ob_comma.ngo:"NET RLOCK" ob_comma.ngo:"NET FLOCK"
  1980.  
  1981.  
  1982. '####################################################################################
  1983. !short:NetSetIndex (cListFiles,[lContinue]) --> true/false
  1984. ^BNetSetIndex (cListFiles,[lContinue]) --> true/false:
  1985. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1986.  
  1987. Functions:
  1988. ~~~~~~~~~~
  1989. functional variant of NET SET INDEX command described in commands
  1990. chapter.
  1991.  
  1992. Parameter description:
  1993. ~~~~~~~~~~~~~~~~~~~~~~
  1994. cListFiles: idex file list to be opened in form :
  1995.             "File1,File2,File3,...,FileN"
  1996. lContinue:  if true, it can continue whether the index opening failed
  1997.             or no
  1998.  
  1999. Return value:
  2000. ~~~~~~~~~~~~~
  2001. true if the index open succeeded, false if no
  2002.  
  2003. Source code is in file  Object3.prg
  2004.  
  2005. !seealso: NetIndexOn NetReIndex ob_comma.ngo:"NET SET INDEX" ob_comma.ngo:"NET INDEX ON"
  2006.  
  2007.  
  2008. '####################################################################################
  2009. !short:NetZap ([lContinue]) --> true/false
  2010. ^BNetZap ([lContinue]) --> true/false:
  2011. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  2012.  
  2013. Functions:
  2014. ~~~~~~~~~~
  2015. Functional variant of NET ZAP command, described in commnds chapter
  2016.  
  2017. Parameter description:
  2018. ~~~~~~~~~~~~~~~~~~~~~~
  2019. lContinue: if true, it can continue whether the function failed or no
  2020.  
  2021. Return value:
  2022. ~~~~~~~~~~~~~
  2023. true if the zap succeeded, false if no
  2024.  
  2025. Source code is in file  Object3.prg
  2026.  
  2027. !seealso: NetPack NetReIndex ob_comma.ngo:"NET ZAP" ob_comma.ngo:"NET PACK" ob_comma.ngo:"NET REINDEX"
  2028.  
  2029.  
  2030. '####################################################################################
  2031. !short:OAlert (cMessage,[aOptions],[nRow]) --> nChoice
  2032. ^BOAlert (cMessage,[aOptions],[nRow]) --> nChoice:
  2033. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  2034.  
  2035. Functions:
  2036. ~~~~~~~~~~
  2037. In cause of deadlock of my computer when issuing the Alert() command
  2038. I wrote the OAlert(). The difference is in used colors and in nRow
  2039. parameter to set the start row of alert window.
  2040.  
  2041. Parameter description:
  2042. ~~~~~~~~~~~~~~~~~~~~~~
  2043. cMessage: string to display in a alert window; the semicolon (;) ia a
  2044.           line separator
  2045. aOptions: array of options to select {"option1","option2"...},
  2046.           default {"OK"}
  2047. nRow:     the strt row of alert window, default is centr of the screen
  2048.  
  2049. Return value:
  2050. ~~~~~~~~~~~~~
  2051. number of selected option from aOptions array or zero (0) if ESC was pressed
  2052.  
  2053. Source code is in file  Object3.prg
  2054.  
  2055. !seealso: c_mnu.ngo:Mnu c_menu.ngo:Menu c_choice.ngo:Choice
  2056.  
  2057.  
  2058. '####################################################################################
  2059. !short:ObjectDone ([lContinue]) --> true
  2060. ^BObjectDone ([lContinue]) --> true:
  2061. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  2062.  
  2063. Functions:
  2064. ~~~~~~~~~~
  2065. If lContinue is false, the databases are closed and the original dos
  2066. screen is restored. If lContinue is true or nil the databases are
  2067. closed, user is logged off, and the original dos screen is restored,
  2068. it should be one of the last commands before the end of the program.
  2069.  
  2070. Parameter description:
  2071. ~~~~~~~~~~~~~~~~~~~~~~
  2072. lContinue: if true, it can continue whether the function failed or no
  2073.  
  2074. Return value:
  2075. ~~~~~~~~~~~~~
  2076. true
  2077.  
  2078. Source code is in file  Object3.prg
  2079.  
  2080. !seealso: ObjectInit
  2081.  
  2082.  
  2083. '####################################################################################
  2084. !short:ObjectInit ([clr],cPrgName,nVersion,nYear,[cUser],[cAuthor],[cLine]) --> nil
  2085. ^BObjectInit ([clr],cPrgName,nVersion,nYear,[cUser],[cAuthor],[cLine]) --> true:
  2086. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  2087.  
  2088. Functions:
  2089. ~~~~~~~~~~
  2090. Public library variables are defined, basic library classes are
  2091. registered, the m->tColor variable, public object m->Color are set on
  2092. the value of command line parameters, the F1 and SHIFT F1 keys are set
  2093. to help system, the basic program screeen is painted, the date and time
  2094. is requested (if SetDateTime()==true). All parameters except of clr are
  2095. send to AboutOn() function for painting of information program screen.
  2096.  
  2097. Parameter description:
  2098. ~~~~~~~~~~~~~~~~~~~~~~
  2099. clr:       parameter of command line, sets the monitor type, see the
  2100.            m->tColor variable
  2101. cPrgName:  program name of up to 8 characters
  2102. nVersion:  version number
  2103. nYear:     creation year
  2104. cUser:     registered user name
  2105. cAuthor:   author copyright string
  2106. cLine:     special comment line
  2107.  
  2108. Return value:
  2109. ~~~~~~~~~~~~~
  2110. true
  2111.  
  2112. Remarks:
  2113. ~~~~~~~~
  2114. Example of use are in DEMO1.prg and DEMO2.prg
  2115.  
  2116. Source code is in file  Object3.prg
  2117.  
  2118. !seealso: AboutOn ObjectDone ob_basic.ngo:m->tColor ob_basic.ngo:m->Color c_color.ngo:Color
  2119.  
  2120.  
  2121. '####################################################################################
  2122. !short:OutputDevice (What,[iAdditive]) --> nil
  2123. ^BOutputDevice(What,[iAdditive]) --> nil:
  2124. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  2125.  
  2126. Functions:
  2127. ~~~~~~~~~~
  2128. Clipper output device is switched to monitor, printer or file.
  2129.  
  2130. Parameter description:
  2131. ~~~~~~~~~~~~~~~~~~~~~~
  2132. What:      can obtain values OD_SCREEN, OD_PRINTER (screen output,
  2133.            or printer output - the object.ch defined constants)
  2134.            or can be a file name to redirect the output
  2135. lAdditive: logical variable to supress the screen output
  2136.  
  2137. Return value:
  2138. ~~~~~~~~~~~~~
  2139. procedure returns nil
  2140.  
  2141. Example:
  2142. ~~~~~~~~
  2143.     OutputDevice(OD_PRINTER)
  2144.     ? "WE ARE PRINTING TO PRINTER..."
  2145.     OutputDevice(OD_SCREEN)
  2146.     ? "WE ARE PRINTING TO THE SCREEN..."
  2147.     OutputDevice("text.txt")
  2148.     ? "WE ARE PRINTING TO A FILE..."
  2149.  
  2150. Source code is in file  object3.prg.
  2151.  
  2152.  
  2153. '####################################################################################
  2154. !short:PageLength ([nNewRows]) --> nOldRows
  2155. ^BPageLength ([nNewRows]) --> nOldRows:
  2156. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  2157.  
  2158. Functions:
  2159. ~~~~~~~~~~
  2160. Internal static variable contains a number lines pre page for reports.
  2161. If performed without a parameters, it returns the current lines/page,
  2162. with a parameter it stores as new value lines/page.
  2163.  
  2164.  
  2165. Parameter description:
  2166. ~~~~~~~~~~~~~~~~~~~~~~
  2167. cNewRows: new value lines pre page for reports.
  2168.  
  2169.  
  2170. Return value:
  2171. ~~~~~~~~~~~~~
  2172. current number lines/page.
  2173.  
  2174.  
  2175. Source code is in file Object3.prg
  2176.  
  2177. !seealso: PrintFile PrintOn PrintOff OutputDevice
  2178.  
  2179.  
  2180. '####################################################################################
  2181. !short:PauseKey ([nSecs]) --> nKey
  2182. ^BPauseKey ([nSecs]) --> nKey:
  2183. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  2184.  
  2185. Functions:
  2186. ~~~~~~~~~~
  2187. The same as the InKeyWait(),but if the activating key was pressed, we
  2188. wait for a new key pressing. The code block set by SetKey() is performed
  2189. and returns a keypressed code.
  2190.  
  2191. Parameter description:
  2192. ~~~~~~~~~~~~~~~~~~~~~~
  2193. nSecs: time is seconds how long to wait for keypressing
  2194.  
  2195. Return value:
  2196. ~~~~~~~~~~~~~
  2197. keypressed code
  2198.  
  2199. Example:
  2200. ~~~~~~~~
  2201.      SetKey(K_F1,{||HelpKeys()})
  2202.      ? PauseKey(0)
  2203.      ...
  2204. Hangs on F1 key a HelpKeys() function and waits for a keypressing. If
  2205. F1 key was pressed the HelpKeys() function is performed and continues
  2206. the waiting wor a keypress. If there was another key pressed its code
  2207. is displayed.
  2208.  
  2209. Source code is in file  Object3.prg
  2210.  
  2211. !seealso: InKeyWait StuffKey StuffKeys SetLastKey
  2212.  
  2213.  
  2214. '####################################################################################
  2215. !short:PopBreak () --> code_block
  2216. ^BPopBreak () --> code_block:
  2217. ~~~~~~~~~~~~~~~~~~~~~~~~~~~
  2218.  
  2219. Functions:
  2220. ~~~~~~~~~~
  2221. The last item of internal error subroutines stack is popped (the code
  2222. block of error status handle) and returned to calling function. It
  2223. serves for BEGIN BREAK ... END BREAK commands.
  2224.  
  2225. Parameter description:
  2226. ~~~~~~~~~~~~~~~~~~~~~~
  2227. nil
  2228.  
  2229. Return value:
  2230. ~~~~~~~~~~~~~
  2231. error status serving code block
  2232.  
  2233. Source code is in file  ErrorSys.prg.
  2234.  
  2235. !seealso: PushBreak DoBreak ob_comma.ngo:"BEGIN BREAK"
  2236.  
  2237.  
  2238. '####################################################################################
  2239. !short:PrintCodes (cCtrlCode) --> true
  2240. ^BPrintCodes (cCtrlCode) --> true:
  2241. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  2242.  
  2243. Functions:
  2244. ~~~~~~~~~~
  2245. The control codes from a cCtrlCode string are send to printer, the print
  2246. head position maintains unchanged, the correct values of PRow() a PCol()
  2247. functions are returned.
  2248.  
  2249. Parameter description:
  2250. ~~~~~~~~~~~~~~~~~~~~~~
  2251. cCtrlCode: control codes to send to a printer
  2252.  
  2253. Return value:
  2254. ~~~~~~~~~~~~~
  2255. true
  2256.  
  2257. Example:
  2258. ~~~~~~~~
  2259.      PrintCodes("@")   //printer reset
  2260.  
  2261. Source code is in file  Object3.prg
  2262.  
  2263. !seealso: PrintOn PrintOff PrintFile OutputDevice
  2264.  
  2265.  
  2266. '####################################################################################
  2267. !short:PrintFile (cFileName) --> nil
  2268. ^BPrintFile (cFileName) --> nil:
  2269. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  2270.  
  2271. Functions:
  2272. ~~~~~~~~~~
  2273. Send the file into a printer.
  2274.  
  2275. Parameter description:
  2276. ~~~~~~~~~~~~~~~~~~~~~~
  2277. cFileName: this file must be sended into a printer.
  2278.  
  2279. Return value:
  2280. ~~~~~~~~~~~~~
  2281. nil
  2282.  
  2283. Example:
  2284. ~~~~~~~~
  2285.      PrintFile("MyFile.txt")   //send MyFile.txt into a printer.
  2286.  
  2287. Source code is in file  Object3.prg
  2288.  
  2289. !seealso: PrintCodes PrintOn PrintOff OutputDevice
  2290.  
  2291.  
  2292. '####################################################################################
  2293. !short:PrintOff () --> nil
  2294. ^BPrintOff () --> nil:
  2295. ~~~~~~~~~~~~~~~~~~~~
  2296.  
  2297. Functions:
  2298. ~~~~~~~~~~
  2299. Switch output device into screen.
  2300.  
  2301. Parameter description:
  2302. ~~~~~~~~~~~~~~~~~~~~~~
  2303. none
  2304.  
  2305. Return value:
  2306. ~~~~~~~~~~~~~
  2307. nil
  2308.  
  2309.  
  2310. Source code is in file  Object3.prg
  2311.  
  2312. !seealso: PrintCodes PrintOn PrintFile OutputDevice
  2313.  
  2314.  
  2315. '####################################################################################
  2316. !short:PrintOn () --> nil
  2317. ^BPrintOn () --> nil:
  2318. ~~~~~~~~~~~~~~~~~~~
  2319.  
  2320. Functions:
  2321. ~~~~~~~~~~
  2322. Switch output device into printer.
  2323.  
  2324. Parameter description:
  2325. ~~~~~~~~~~~~~~~~~~~~~~
  2326. none
  2327.  
  2328. Return value:
  2329. ~~~~~~~~~~~~~
  2330. nil
  2331.  
  2332.  
  2333. Source code is in file  Object3.prg
  2334.  
  2335. !seealso: PrintCodes PrintOff PrintFile OutputDevice
  2336.  
  2337.  
  2338. '####################################################################################
  2339. !short:PushBreak (Br) --> nil
  2340. ^BPushBreak (Br) --> nil:
  2341. ~~~~~~~~~~~~~~~~~~~~~~~
  2342.  
  2343. Functions:
  2344. ~~~~~~~~~~
  2345. The internal error subroutines stack is pushed the new item Br (error
  2346. status serving code block), for the use by BEGIN BREAK ... END BREAK
  2347. commands.
  2348.  
  2349. Parameter description:
  2350. ~~~~~~~~~~~~~~~~~~~~~~
  2351. Br: item pushed to the stack
  2352.  
  2353. Return value:
  2354. ~~~~~~~~~~~~~
  2355. nil
  2356.  
  2357. Source code is in file  ErrorSys.prg.
  2358.  
  2359. !seealso: PopBreak DoBreak ob_comma.ngo:"BEGIN BREAK"
  2360.  
  2361.  
  2362. '####################################################################################
  2363. !short:ReadHelpVar (vn) --> VarName
  2364. ^BReadHelpVar (vn) --> VarName:
  2365. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  2366.  
  2367. Functions:
  2368. ~~~~~~~~~~
  2369. ReadHelpVar() returns the last item of its internal stack (edited
  2370. variable name).
  2371.  
  2372. ReadHelpVar("VarName")
  2373. The internal stack is pushed a "VarName" parameter, used for activating
  2374. of a sensitive help for edited variable name obtain. (PUSH)
  2375.  
  2376. ReadHelpVar("")
  2377. The last item of internal stack is popped.
  2378.  
  2379. Parameter description:
  2380. ~~~~~~~~~~~~~~~~~~~~~~
  2381. vn: edited variable name
  2382.  
  2383. Return value:
  2384. ~~~~~~~~~~~~~
  2385. edited variable name
  2386.  
  2387. Source code is in file  Object2.prg.
  2388.  
  2389. !seealso: HelpField HelpAssoc ChangeAssoc HelpReserved
  2390.  
  2391.  
  2392. '####################################################################################
  2393. !short:RefreshRow () --> nil
  2394. ^BRefreshRow () --> nil:
  2395. ~~~~~~~~~~~~~~~~~~~~~~
  2396.  
  2397. Functions:
  2398. ~~~~~~~~~~
  2399. For a edited object of view class is edited line refreshed. It is used
  2400. after a change of a field in validation.
  2401.  
  2402. Parameter description:
  2403. ~~~~~~~~~~~~~~~~~~~~~~
  2404. nil
  2405.  
  2406. Return value:
  2407. ~~~~~~~~~~~~~
  2408. nil
  2409.  
  2410. Example:
  2411. ~~~~~~~~
  2412.      RefreshRow()   //row refresh
  2413.  
  2414. Source code is in file  Object3.prg
  2415.  
  2416. !seealso:  RefreshTable
  2417.  
  2418.  
  2419. '####################################################################################
  2420. !short:RefreshTable () --> nil
  2421. ^BRefreshTable () --> nil:
  2422. ~~~~~~~~~~~~~~~~~~~~~~~~
  2423.  
  2424. Functions:
  2425. ~~~~~~~~~~
  2426. For edited object of view class is whole visible part refreshed. It is
  2427. used after a change of fields in validation. When used with filter set
  2428. it can last a long time !
  2429.  
  2430. Parameter description:
  2431. ~~~~~~~~~~~~~~~~~~~~~~
  2432. nil
  2433.  
  2434. Return value:
  2435. ~~~~~~~~~~~~~
  2436. nil
  2437.  
  2438. Example:
  2439. ~~~~~~~~
  2440.      RefreshTable()   //display refresh
  2441.  
  2442. Source code is in file  Object3.prg
  2443.  
  2444. !seealso:  RefreshRow
  2445.  
  2446.  
  2447. '####################################################################################
  2448. !short:RepaintDesktop () --> nil
  2449. ^BRepaintDesktop () --> nil:
  2450. ~~~~~~~~~~~~~~~~~~~~~~~~~~
  2451.  
  2452. Functions:
  2453. ~~~~~~~~~~
  2454. It perform redrawingg for all screen area.
  2455. (Can be used after return from DOS.)
  2456.  
  2457.  
  2458. Parameter description:
  2459. ~~~~~~~~~~~~~~~~~~~~~~
  2460. nil
  2461.  
  2462. Return value:
  2463. ~~~~~~~~~~~~~
  2464. nil
  2465.  
  2466.  
  2467. Source code is in file  C_Window.prg
  2468.  
  2469.  
  2470.  
  2471. '####################################################################################
  2472. !short:RestartTask () --> true/false
  2473. ^BRestartTask() --> true/false:
  2474. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  2475.  
  2476. Functions:
  2477. ~~~~~~~~~~
  2478. Last active task restart. The task swapper takes the last active task
  2479. and starts the VProcess() of it. The Task:Process() method is realy
  2480. activated.
  2481.  
  2482. Parameter description:
  2483. ~~~~~~~~~~~~~~~~~~~~~~
  2484. nil
  2485.  
  2486. Return value:
  2487. ~~~~~~~~~~~~~
  2488. true if there is a task to activate otherwise false.
  2489.  
  2490. Source code is in file  c_task.prg
  2491.  
  2492. !seealso: c_task.ngo:Task
  2493.  
  2494.  
  2495. '####################################################################################
  2496. !short:RestDatabase () --> nil
  2497. ^BRestDatabase () --> nil:
  2498. ~~~~~~~~~~~~~~~~~~~~~~~~
  2499.  
  2500. Functions:
  2501. ~~~~~~~~~~
  2502. Restores original state of the databases, previously saved with function
  2503. SwapDatabase(...).
  2504.  
  2505. Parameter description:
  2506. ~~~~~~~~~~~~~~~~~~~~~~
  2507. nil
  2508.  
  2509. Return value:
  2510. ~~~~~~~~~~~~~
  2511. nil
  2512.  
  2513. Source code is in file Object3.prg
  2514.  
  2515. !seealso: SwapDatabase
  2516.  
  2517.  
  2518. '####################################################################################
  2519. !short:RestDOut () --> nil
  2520. ^BRestDOut () --> nil:
  2521. ~~~~~~~~~~~~~~~~~~~~
  2522.  
  2523. Functions:
  2524. ~~~~~~~~~~
  2525. If it is enabled to write to dialogue line, its stored (by SaveDout())
  2526. text is restored.
  2527.  
  2528. Parameter description:
  2529. ~~~~~~~~~~~~~~~~~~~~~~
  2530. nil
  2531.  
  2532. Return value:
  2533. ~~~~~~~~~~~~~
  2534. nil
  2535.  
  2536. Remarks:
  2537. ~~~~~~~~
  2538. Output to dialogue line can be supressed by SetDialog() function, the
  2539. use of SavedOut() RestDOut() functions can be in more levels. You can
  2540. several times call the SaveDout() and restore the data by the same
  2541. number of RestDOut() calls.
  2542.  
  2543. Source code is in file  Object3.prg
  2544.  
  2545. !seealso: SetDialog SaveDOut DOut SaveScr RestScr
  2546.  
  2547.  
  2548. '####################################################################################
  2549. !short:RestHelpIdx () --> true
  2550. ^BRestHelpIdx () --> true:
  2551. ~~~~~~~~~~~~~~~~~~~~~~~~
  2552.  
  2553. Functions:
  2554. ~~~~~~~~~~
  2555. If SetHelpIdx()==true the subarray to display in HelpKeys() information
  2556. is restored. This information must be stored by SaveHelpIdx().
  2557.  
  2558. Parameter description:
  2559. ~~~~~~~~~~~~~~~~~~~~~~
  2560. nil
  2561.  
  2562. Return value:
  2563. ~~~~~~~~~~~~~
  2564. true
  2565.  
  2566. Remarks:
  2567. ~~~~~~~~
  2568. It is possible to use functions SaveHelpIdx() and RestHelpIdx() in more
  2569. levels by repeatedly calling the first and for restoring the second
  2570. function.
  2571.  
  2572. Source code is in file  Object2.prg
  2573.  
  2574. !seealso: HelpKeys SaveHelpIdx SetHelpIdx
  2575.  
  2576.  
  2577. '####################################################################################
  2578. !short:RestScr (aScreenArray) --> true
  2579. ^BRestScr (aScreenArray) --> true:
  2580. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  2581.  
  2582. Functions:
  2583. ~~~~~~~~~~
  2584. The screen is restored, cursor shape and position, colors and the  text
  2585. from the aScreeenArray created by SaveScr().
  2586.  
  2587. Parameter description:
  2588. ~~~~~~~~~~~~~~~~~~~~~~
  2589. aScreenArray: array of data saved by SaveScr()
  2590.  
  2591. Return value:
  2592. ~~~~~~~~~~~~~
  2593. true
  2594.  
  2595. Example:
  2596. ~~~~~~~~
  2597.     local aS:=SaveScr()    //screen save
  2598.     cls                    //erase
  2599.     InKey(0)               //wait for keypress
  2600.     RestScr(aS)            //screen restore
  2601.  
  2602. Source code is in file  Object1.prg
  2603.  
  2604. !seealso: SaveScr SaveDOut RestDOut DOut
  2605.  
  2606.  
  2607. '####################################################################################
  2608. !short:SaveDOut (cMsg) --> nil
  2609. ^BSaveDOut (cMsg) --> nil:
  2610. ~~~~~~~~~~~~~~~~~~~~~~~~
  2611.  
  2612. Functions:
  2613. ~~~~~~~~~~
  2614. If it is enabled to output to dialogue line, the centered text is
  2615. displayed to it The text is stored for further use by SetMsg() and
  2616. (diferention to DOut()) the text for restoring by RestDout() is stored.
  2617. The used colors are m->Color:Menu[nNormal], SetColor() is unchanged and
  2618. the cursor shape and position too.
  2619.  
  2620. Parameter description:
  2621. ~~~~~~~~~~~~~~~~~~~~~~
  2622. cMsg:  text for dialog line output
  2623.  
  2624. Return value:
  2625. ~~~~~~~~~~~~~
  2626. nil
  2627.  
  2628. Remarks:
  2629. ~~~~~~~~
  2630. The dialog line output can be supressed by SetDialog() function, the
  2631. use of SavedOut() RestDOut() functions can be in more levels. You can
  2632. several times call the SaveDout() fun. and restore the data by the same
  2633. number of RestDOut() calls.
  2634.  
  2635. Source code is in file  Object3.prg
  2636.  
  2637. !seealso: SetDialog DOut RestDOut SaveScr RestScr
  2638.  
  2639.  
  2640. '####################################################################################
  2641. !short:SaveHelpIdx (aNewIdx) --> true
  2642. ^BSaveHelpIdx (aNewIdx) --> true:
  2643. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  2644.  
  2645. Functions:
  2646. ~~~~~~~~~~
  2647. If is SetHelpIdx()==true the subfields to display information is stored
  2648. for display by HelpKeys(). More deep description is in describing of
  2649. HelpKeys().
  2650.  
  2651. Parameter description:
  2652. ~~~~~~~~~~~~~~~~~~~~~~
  2653. aNewIdx:  array of subfields to display index.
  2654.  
  2655. Return value:
  2656. ~~~~~~~~~~~~~
  2657. true
  2658.  
  2659. Remarks:
  2660. ~~~~~~~~
  2661. It is possible to use functions SaveHelpIdx() and RestHelpIdx() in more
  2662. levels by repeatedly calling the first and for restoring the second
  2663. function.
  2664.  
  2665. Source code is in file  Object2.prg
  2666.  
  2667. !seealso: HelpKeys RestHelpIdx SetHelpIdx
  2668.  
  2669.  
  2670. '####################################################################################
  2671. !short:SaveScr ([nRow1],[nCol1],[nRow2],[nCol2]) --> aScreenArray
  2672. ^BSaveScr ([nRow1],[nCol1],[nRow2],[nCol2]) --> aScreenArray:
  2673. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  2674.  
  2675. Functions:
  2676. ~~~~~~~~~~
  2677. The screen is saved (cursor, colors, text) to aScreeenArray.
  2678.  
  2679. Parameter description:
  2680. ~~~~~~~~~~~~~~~~~~~~~~
  2681. nRow1: upper border of region to store
  2682. nCol1: left border ...
  2683. nRow2: bottom border ...
  2684. nCol2: right border ...
  2685. default is the whole screen
  2686.  
  2687. Return value:
  2688. ~~~~~~~~~~~~~
  2689. aScreenArray:  array to store the data
  2690.  
  2691. Example:
  2692. ~~~~~~~~
  2693.     local aS:=SaveScr()    //screen stored
  2694.     cls                    //erased
  2695.     InKey(0)               //wait for keypress
  2696.     RestScr(aS)            //screeen restore
  2697.  
  2698. Source code is in file  Object1.prg
  2699.  
  2700. !seealso: RestScr SaveDOut RestDOut DOut
  2701.  
  2702.  
  2703. '####################################################################################
  2704. !short:SetDateTime ([lNew]) --> true/false
  2705. ^BSetDateTime ([lNew]) --> lOldValue:
  2706. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  2707.  
  2708. Functions:
  2709. ~~~~~~~~~~
  2710. Serves as a switch, if set to true (if returns true) the ObjectInit()
  2711. requires the date and time input, if false then no request.
  2712.  
  2713. Parameter description:
  2714. ~~~~~~~~~~~~~~~~~~~~~~
  2715. lNew: new value to set the switch
  2716.  
  2717. Return value:
  2718. ~~~~~~~~~~~~~
  2719. true/false
  2720.  
  2721. Example:
  2722. ~~~~~~~~
  2723.     ? SetDateTime()        //the value of the switch
  2724.     SetDateTime(true)      //set the switch to true
  2725.     ? SetDateTime()        //returns true
  2726.  
  2727. Source code is in file  Object3.prg
  2728.  
  2729. !seealso: ObjectInit
  2730.  
  2731.  
  2732. '####################################################################################
  2733. !short:SetDialog ([lNew]) --> true/false
  2734. ^BSetDialog ([lNew]) --> true/false:
  2735. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  2736.  
  2737. Functions:
  2738. ~~~~~~~~~~
  2739. serves as a switch, if set to true (if returns true) the dialog line
  2740. output and change is enabled, if false it is disabled.
  2741.  
  2742. Parameter description:
  2743. ~~~~~~~~~~~~~~~~~~~~~~
  2744. lNew: new value to set the switch
  2745.  
  2746. Return value:
  2747. ~~~~~~~~~~~~~
  2748. true/false
  2749.  
  2750. Example:
  2751. ~~~~~~~~
  2752.     ? SetDialog()        //the value of the switch
  2753.     SetDialog(true)      //set the switch to true
  2754.     ? SetDialog()        //returns true
  2755.  
  2756. Source code is in file  Object3.prg
  2757.  
  2758. !seealso: DOut SaveDOut RestDOut
  2759.  
  2760.  
  2761. '####################################################################################
  2762. !short:SetDMsg ([cNew]) --> true/false
  2763. ^BSetDMsg ([cNew]) --> OldString:
  2764. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  2765.  
  2766. Functions:
  2767. ~~~~~~~~~~
  2768. serves as a switch, if set to true (if returns true), the dialog line
  2769. output is ensbled, if false it is disabled
  2770.  
  2771. Parameter description:
  2772. ~~~~~~~~~~~~~~~~~~~~~~
  2773. lNew: new value to set the switch
  2774.  
  2775. Return value:
  2776. ~~~~~~~~~~~~~
  2777. true/false
  2778.  
  2779. Example:
  2780. ~~~~~~~~
  2781.     ? SetDMsg()        //the value of the switch
  2782.     SetDMsg(true)      //set the switch to true
  2783.     ? SetDMsg()        //returns true
  2784.  
  2785. Source code is in file  Object3.prg
  2786.  
  2787. !seealso: DOut SaveDOut RestDOut
  2788.  
  2789.  
  2790. '####################################################################################
  2791. !short:SetErrFile ([cNewFileName]) --> cOldFileName
  2792. ^BSetErrFile ([cNewFileName]) --> cOldFileName:
  2793. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  2794.  
  2795. Functions:
  2796. ~~~~~~~~~~
  2797. Internal static variable contains a filename of error output. If
  2798. performed without a parameters, it returns the file name,
  2799. with a parameter it stores it as a new file name for error output.
  2800.  
  2801. Parameter description:
  2802. ~~~~~~~~~~~~~~~~~~~~~~
  2803. cNewFileName: new filename for error output
  2804.  
  2805. Return value:
  2806. ~~~~~~~~~~~~~
  2807. new filename for error output
  2808.  
  2809.  
  2810. Source code is in file  ErrorSys.prg
  2811.  
  2812. !seealso: ob_comma.ngo:"SET ERRORS FILE"
  2813.  
  2814.  
  2815. '####################################################################################
  2816. !short:SetHelpIdx ([lNew]) --> true/false
  2817. ^BSetHelpIdx ([lNew]) --> true/false
  2818. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  2819.  
  2820. Functions:
  2821. ~~~~~~~~~~
  2822. Serves as a switch, if set to true (if returns true), there is enabled
  2823. to change a information displayed by HelpKeys(), if set to false the
  2824. change is disabled.
  2825.  
  2826. Parameter description:
  2827. ~~~~~~~~~~~~~~~~~~~~~~
  2828. lNew: new value to set the switch
  2829.  
  2830. Return value:
  2831. ~~~~~~~~~~~~~
  2832. true/false
  2833.  
  2834. Example:
  2835. ~~~~~~~~
  2836.     ? SetHelpIdx()        //the value of the switch
  2837.     SetHelpIdx(true)      //set the switch to true
  2838.     ? SetHelpIdx()        //returns true
  2839.  
  2840. Source code is in file  Object3.prg
  2841.  
  2842. !seealso: HelpKeys SaveHelpIdx RestHelpIdx
  2843.  
  2844.  
  2845. '####################################################################################
  2846. !short:SetLastKey (nKey) --> nKey
  2847. ^BSetLastKey (nKey) --> nKey:
  2848. ~~~~~~~~~~~~~~~~~~~~~~~~~~~
  2849.  
  2850. Functions:
  2851. ~~~~~~~~~~
  2852. The functional variant of SET LAST KEY ... command, the nKey number is
  2853. set to return this number from the LastKey() function until is a key
  2854. pressed or until a new set by SetLastKey().
  2855.  
  2856. Parameter description:
  2857. ~~~~~~~~~~~~~~~~~~~~~~
  2858. nKey:  key code to return by LastKey() function
  2859.  
  2860. Return value:
  2861. ~~~~~~~~~~~~~
  2862. returns the value set as nKey
  2863.  
  2864. Example:
  2865. ~~~~~~~~
  2866.     ? LastKey()          //returns last keypressed value
  2867.     SetLastKey(K_ENTER)  //LastKey() is set to ENTER value
  2868.     ? LastKey()          //returns a Enter key value ( K_ENTER)
  2869.  
  2870. Source code is in file  Object3.prg
  2871.  
  2872. !seealso: StuffKey StuffKeys InKeyWait PauseKey ob_comma.ngo:"SET LASTKEY"
  2873.  
  2874.  
  2875. '####################################################################################
  2876. !short:SetLastTask ([<NewTask>]) --> task_object
  2877. ^BSetLastTask ([<NewTask>]) --> task_object:
  2878. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  2879.  
  2880. Functions:
  2881. ~~~~~~~~~~
  2882. Object NewTask is set to last active task, after leaving the main menu
  2883. this task is restarted. If no parameter set it returns the last active
  2884. task.
  2885.  
  2886. Parameter description:
  2887. ~~~~~~~~~~~~~~~~~~~~~~
  2888. NewTask    last active object identificator
  2889.  
  2890. Return value:
  2891. ~~~~~~~~~~~~~
  2892. posledny aktivny object (uloha)
  2893.  
  2894. Source code is in file  c_task.prg
  2895.  
  2896. !seealso: c_task.ngo:Task
  2897.  
  2898.  
  2899. '####################################################################################
  2900. !short:SetMemoWrap ([lNew]) --> true/false
  2901. ^BSetMemoWrap ([lNew]) --> true/false:
  2902. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  2903.  
  2904. Functions:
  2905. ~~~~~~~~~~
  2906. serves as a switch, if set to true (if returns true) it is enabled
  2907. word_wrap in memo item edit (Memo() fun.), if false it is disabled.
  2908.  
  2909. Parameter description:
  2910. ~~~~~~~~~~~~~~~~~~~~~~
  2911. lNew: new value to set the switch
  2912.  
  2913. Return value:
  2914. ~~~~~~~~~~~~~
  2915. true/false
  2916.  
  2917. Example:
  2918. ~~~~~~~~
  2919.     ? SetMemoWrap()        //the value of the switch
  2920.     SetMemoWrap(true)      //set the switch to true
  2921.     ? SetMemoWrap()        //returns true
  2922.  
  2923. Source code is in file  Object3.prg
  2924.  
  2925. !seealso: Memo
  2926.  
  2927.  
  2928. '####################################################################################
  2929. !short:SetQuickEsc ([lNew]) --> true/false
  2930. ^BSetQuickEsc ([lNew]) --> true/false:
  2931. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  2932.  
  2933. Functions:
  2934. ~~~~~~~~~~
  2935. Serves as a switch, if set to true (if returns true), after pressing the
  2936. ESC the menu is imediately cancelled, if false the menu is returned one
  2937. level up.
  2938.  
  2939. Parameter description:
  2940. ~~~~~~~~~~~~~~~~~~~~~~
  2941. lNew: new value to set the switch
  2942.  
  2943. Return value:
  2944. ~~~~~~~~~~~~~
  2945. true/false
  2946.  
  2947. Example:
  2948. ~~~~~~~~
  2949.     ? SetQuickEsc()        //the value of the switch
  2950.     SetQuickEsc(true)      //set the switch to true
  2951.     ? SetQuickEsc()        //returns true
  2952.  
  2953. Source code is in file  Object3.prg
  2954.  
  2955. !seealso: c_menu.ngo:Menu
  2956.  
  2957.  
  2958. '####################################################################################
  2959. !short:SetShowText ([lNew]) --> true/false
  2960. ^BSetShowText ([lNew]) --> true/false:
  2961. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  2962.  
  2963. Functions:
  2964. ~~~~~~~~~~
  2965. Serves as a switch, if set to true (if returns true), when waiting for
  2966. keypress the ShowText() text is displayed in upper right window corner,
  2967. if false no function.
  2968.  
  2969. Parameter description:
  2970. ~~~~~~~~~~~~~~~~~~~~~~
  2971. lNew: new value to set the switch
  2972.  
  2973. Return value:
  2974. ~~~~~~~~~~~~~
  2975. true/false
  2976.  
  2977. Source code is in file  Object3.prg
  2978.  
  2979. !seealso: ShowText ShowTime SetShowTime GetKey
  2980.  
  2981.  
  2982. '####################################################################################
  2983. !short:SetShowTime ([lNew]) --> true/false
  2984. ^BSetShowTime ([lNew]) --> true/false:
  2985. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  2986.  
  2987. Functions:
  2988. ~~~~~~~~~~
  2989. serves as a switch, if set to true (if returns true), when waiting for
  2990. keypress the time is displayed in upeer right screen corner, if false
  2991. nothing is displayed.
  2992.  
  2993. Parameter description:
  2994. ~~~~~~~~~~~~~~~~~~~~~~
  2995. lNew: new value to set the switch
  2996.  
  2997. Return value:
  2998. ~~~~~~~~~~~~~
  2999. true/false
  3000.  
  3001. Source code is in file  Object3.prg
  3002.  
  3003. !seealso: ShowText ShowTime SetShowText GetKey
  3004.  
  3005.  
  3006. '####################################################################################
  3007. !short:ShowText ([cNew]) --> cOld
  3008. ^BShowText ([cNew]) --> cOld:
  3009. ~~~~~~~~~~~~~~~~~~~~~~~~~~~
  3010.  
  3011. Functions:
  3012. ~~~~~~~~~~
  3013. Text set as cNew parameter is stored, if the output is enabled by
  3014. SetShowText(), it is displayed to upper right screen corner.
  3015. This function is activated by every keypress.
  3016.  
  3017. Parameter description:
  3018. ~~~~~~~~~~~~~~~~~~~~~~
  3019. cNew: text to store and display
  3020.  
  3021. Return value:
  3022. ~~~~~~~~~~~~~
  3023. cOld: stored text.
  3024.  
  3025. Source code is in file  Object3.prg
  3026.  
  3027. !seealso: ShowTime SetShowText SetShowTime GetKey
  3028.  
  3029.  
  3030. '####################################################################################
  3031. !short:ShowTime ([cNewTime]) --> cCurrentTime
  3032. ^BShowTime ([cNewTime]) --> cCurrentTime:
  3033. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  3034.  
  3035. Functions:
  3036. ~~~~~~~~~~
  3037. If it is enabled to display a time by SetShowTime() function, this
  3038. function displays time.
  3039.  
  3040. Parameter description:
  3041. ~~~~~~~~~~~~~~~~~~~~~~
  3042. cNewTime: Time to display, if nothing set the clipper time from Time()
  3043. function is used.
  3044.  
  3045. Return value:
  3046. ~~~~~~~~~~~~~
  3047. cCurrentTime: displayed time text string
  3048.  
  3049. Source code is in file  Object3.prg
  3050.  
  3051. !seealso: ShowText SetShowText SetShowTime GetKey
  3052.  
  3053.  
  3054. '####################################################################################
  3055. !short:SkipDeleted() --> true/false
  3056. ^BSkipDeleted() --> true/false:
  3057. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  3058.  
  3059. Functions:
  3060. ~~~~~~~~~~
  3061. RecNo() is set to a first current database record not marked as deleted.
  3062. If all database records are marked for delete it is set to Eof() and
  3063. returns false, if there is one not deleted record at least, his RecNo()
  3064. is set and returns true. The scan goes from the current record to the
  3065. end and then from begin.
  3066.  
  3067. Parameter description:
  3068. ~~~~~~~~~~~~~~~~~~~~~~
  3069. nil
  3070.  
  3071. Return value:
  3072. ~~~~~~~~~~~~~
  3073. true if a record was found, otherwise false
  3074.  
  3075.  
  3076. Source code is in file  OBject3.prg
  3077.  
  3078. !seealso: StuffKey StuffKeys
  3079.  
  3080.  
  3081. '####################################################################################
  3082. !short:StuffKey (nKey) --> true
  3083. ^BStuffKey (nKey) --> true:
  3084. ~~~~~~~~~~~~~~~~~~~~~~~~~
  3085.  
  3086. Functions:
  3087. ~~~~~~~~~~
  3088. The keyboard queue is inserted a keycode to the front of it.
  3089.  
  3090. Parameter description:
  3091. ~~~~~~~~~~~~~~~~~~~~~~
  3092. nKey:  keycode to insert the keyboard queue
  3093.  
  3094. Return value:
  3095. ~~~~~~~~~~~~~
  3096. true
  3097.  
  3098. Source code is in file  Object3.prg
  3099.  
  3100. !seealso: StuffKeys InKeyWait PauseKey SetLastKey
  3101.  
  3102.  
  3103. '####################################################################################
  3104. !short:StuffKeys (cKeys) --> true
  3105. ^BStuffKeys (cKeys) --> true:
  3106. ~~~~~~~~~~~~~~~~~~~~~~~~~~~
  3107.  
  3108. Functions:
  3109. ~~~~~~~~~~
  3110. The keyboard queue is inserted a string, to the front position.
  3111.  
  3112. Parameter description:
  3113. ~~~~~~~~~~~~~~~~~~~~~~
  3114. cKeys:  text string to insert the keybord queue
  3115.  
  3116. Return value:
  3117. ~~~~~~~~~~~~~
  3118. true
  3119.  
  3120. Source code is in file  Object3.prg
  3121.  
  3122. !seealso: StuffKey InKeyWait PauseKey SetLastKey
  3123.  
  3124.  
  3125. '####################################################################################
  3126. !short:SwapColor (cColor) --> cSwappedColor
  3127. ^BSwapColor (cColor) --> cSwappedColor:
  3128. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  3129.  
  3130. Functions:
  3131. ~~~~~~~~~~
  3132. Swap of fore-background colors
  3133.  
  3134. Parameter description:
  3135. ~~~~~~~~~~~~~~~~~~~~~~
  3136. cColor: text string to swap the colors
  3137.  
  3138. Return value:
  3139. ~~~~~~~~~~~~~
  3140. new string with swapped colors
  3141.  
  3142. Example:
  3143. ~~~~~~~~
  3144.     ? SwapColor("w/n+")  // output :"n+/w"
  3145.  
  3146. Source code is in file  Object3.prg
  3147.  
  3148. !seealso: GetFore GetBack
  3149.  
  3150.  
  3151. '####################################################################################
  3152. !short:SwapDatabase (cAlias, nOrder) --> nil
  3153. ^BSwapDatabase (cAlias, nOrder) --> nil:
  3154. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  3155.  
  3156. Functions:
  3157. ~~~~~~~~~~
  3158. Switch to on workarea cAlias, make the "set order to nOrder".
  3159. Will be to save all need data for restore previous state of the database
  3160. system with function RestDatabase().
  3161.  
  3162. Parameter description:
  3163. ~~~~~~~~~~~~~~~~~~~~~~
  3164. cAlias: alias for the workarea that will be selected.
  3165. nOrder: index order in new selected workarea.
  3166.  
  3167. Return value:
  3168. ~~~~~~~~~~~~~
  3169. nil
  3170.  
  3171. Example:
  3172. ~~~~~~~~
  3173.     SwapDatabase("Ciselnik",2)
  3174.       go top
  3175.       while !Eof()
  3176.         if RecordOk()
  3177.           ProceedRecord()
  3178.         endif
  3179.         seek anything 
  3180.       endwhile
  3181.     RestDatabase()
  3182.  
  3183.  
  3184. Source code is in file Object3.prg
  3185.  
  3186. !seealso: RestDatabase
  3187.  
  3188.  
  3189. '####################################################################################
  3190. !short:SwapEGALines () --> nil
  3191. ^BSwapEGALines () --> nil:
  3192. ~~~~~~~~~~~~~~~~~~~~~~~~
  3193.  
  3194. Functions:
  3195. ~~~~~~~~~~
  3196. Switch current screen lines beetwen 25 / 43 lines, and redraw entire screen
  3197. after switching.
  3198.  
  3199. Parameter description:
  3200. ~~~~~~~~~~~~~~~~~~~~~~
  3201. nil
  3202.  
  3203. Return value:
  3204. ~~~~~~~~~~~~~
  3205. nil
  3206.  
  3207. Source code is in file Object3.prg
  3208.  
  3209. !seealso: SwapVGALines
  3210.  
  3211.  
  3212. '####################################################################################
  3213. !short:SwapVGALines () --> nil
  3214. ^BSwapVGALines () --> nil:
  3215. ~~~~~~~~~~~~~~~~~~~~~~~~
  3216.  
  3217. Functions:
  3218. ~~~~~~~~~~
  3219. Switch current screen lines beetwen 25 / 50 lines, and redraw entire screen
  3220. after switching.
  3221.  
  3222. Parameter description:
  3223. ~~~~~~~~~~~~~~~~~~~~~~
  3224. nil
  3225.  
  3226. Return value:
  3227. ~~~~~~~~~~~~~
  3228. nil
  3229.  
  3230. Source code is in file Object3.prg
  3231.  
  3232. !seealso: SwapEGALines
  3233.  
  3234.  
  3235. '####################################################################################
  3236. !short:TestAllDbfReIndex () --> true
  3237. ^BTestAllDbfReIndex() --> true:
  3238. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  3239.  
  3240. Functions:
  3241. ~~~~~~~~~~
  3242. It is used for postponing of database reindex to the time of
  3243. user index are set. The reindex is done by Menu:Init().
  3244.  
  3245. Parameter description:
  3246. ~~~~~~~~~~~~~~~~~~~~~~
  3247. nil
  3248.  
  3249. Return value:
  3250. ~~~~~~~~~~~~~
  3251. true
  3252.  
  3253.  
  3254. Source code is in file  C_Dbf.prg
  3255.  
  3256. !seealso: c_dbf.ngo:Dbf
  3257.  
  3258.  
  3259. '####################################################################################
  3260. !short:TopBreak () --> code_block
  3261. ^BTopBreak () --> code_block:
  3262. ~~~~~~~~~~~~~~~~~~~~~~~~~~~
  3263.  
  3264. Functions:
  3265. ~~~~~~~~~~
  3266. The copy of error subroutines stack top is returned - the code block
  3267. stored by PushBreak(). Serves for BEGIN BREAK ... END BREAK commands.
  3268.  
  3269. Parameter description:
  3270. ~~~~~~~~~~~~~~~~~~~~~~
  3271. nil
  3272.  
  3273. Return value:
  3274. ~~~~~~~~~~~~~
  3275. top of error subroutines stack copy
  3276.  
  3277. Source code is in file  ErrorSys.prg.
  3278.  
  3279. !seealso: PushBreak PopBreak DoBreak ob_comma.ngo:"BEGIN BREAK"
  3280.  
  3281.  
  3282. '####################################################################################
  3283. !short:UserID ([cUserID]) --> cUserID
  3284. ^BUserID ([cUserID]) --> cUserID:
  3285. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  3286.  
  3287. Functions:
  3288. ~~~~~~~~~~
  3289. User ID is stored, to display in every start of a program. You can ask
  3290. for active username whwenewer you need after he enters his ID and
  3291. password.
  3292.  
  3293. Parameter description:
  3294. ~~~~~~~~~~~~~~~~~~~~~~
  3295. cUserID: user ID to store
  3296.  
  3297. Return value:
  3298. ~~~~~~~~~~~~~
  3299. stored user ID
  3300.  
  3301.  
  3302. Source code is in file  ErrorSys.prg
  3303.  
  3304. !seealso: c_menu.ngo:Menu
  3305.  
  3306.  
  3307. '####################################################################################
  3308. !short:UserLevel (new) --> nUserLevel
  3309. ^BUserLevel (new) --> nUserLevel:
  3310. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  3311.  
  3312. Functions:
  3313. ~~~~~~~~~~
  3314. Get set function to store the privileges of active user (0...999), the
  3315. number is supervisor set with user ID and password. It can be used to
  3316. enable/disable the program parts according the user rights. For example
  3317. some database fields can be expelled from the view for some users (when
  3318. creting the view only the fields for privileged user are included in
  3319. it). Aplication programmer should call it without parameters to read
  3320. the active user privilege rights.
  3321.  
  3322. Parameter description:
  3323. ~~~~~~~~~~~~~~~~~~~~~~
  3324. new: new privilege rights level for active user
  3325.  
  3326. Return value:
  3327. ~~~~~~~~~~~~~
  3328. number in a range 0...999: active user privilege rights
  3329.  
  3330. Source code is in file  ErrorSys.prg.
  3331.  
  3332. !seealso: UserNo UserID
  3333.  
  3334.  
  3335. '####################################################################################
  3336. !short:UserNo (new) --> UserNo
  3337. ^BUserNo (new) --> UserNo:
  3338. ~~~~~~~~~~~~~~~~~~~~~~~~
  3339.  
  3340. Functions:
  3341. ~~~~~~~~~~
  3342. The Object.lib library stores the Recno of user from the password
  3343. database (System1.dbf), it is aget-set function, when called without
  3344. parameters it returns the user number (RecNo)
  3345.  
  3346. Parameter description:
  3347. ~~~~~~~~~~~~~~~~~~~~~~
  3348. mew order number (RecNo) of active user in user pasword database
  3349. (System1.dbf)
  3350.  
  3351. Return value:
  3352. ~~~~~~~~~~~~~
  3353. order number (RecNo) of active user in user pasword database
  3354. (System1.dbf)
  3355.  
  3356. Source code is in file  ErrorSys.prg
  3357.  
  3358.  
  3359. '####################################################################################
  3360. !short:WEval (bExpression,bBlock) --> true/false
  3361. ^BWEval (bExpression,bBlock) --> true/false:
  3362. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  3363.  
  3364. Functions:
  3365. ~~~~~~~~~~
  3366. The code block bBlock is performed until the result of
  3367. Eval(bExpression)==true, or result of Eval(bBlock)==false.
  3368.  
  3369. Parameter description:
  3370. ~~~~~~~~~~~~~~~~~~~~~~
  3371. bExpression:    until this code block result is true the code block
  3372.                 bBlock is performed again
  3373. bBlock:         code block to repeat
  3374.  
  3375. Return value:
  3376. ~~~~~~~~~~~~~
  3377. true if terminated with bExpression
  3378. false if terminated with bBlock
  3379.  
  3380. Source code is in file  Object3.prg
  3381.  
  3382. !seealso: IEval
  3383.  
  3384. '
  3385. '˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙ eof (c)JHK ˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙
  3386. '
  3387.